lukasbableck/contao-more-backend-widgets-bundle
最新稳定版本:1.2.0
Composer 安装命令:
composer require lukasbableck/contao-more-backend-widgets-bundle
包简介
This bundle adds backend widgets/inputTypes which can for example be used in other extensions or in RockSolid Custom Elements.
README 文档
README
This bundle adds backend widgets/inputTypes which can for example be used in other extensions or in RockSolid Custom Elements.
Currently the following widgets are available:
- charPicker
- color
- number
- range
Usage
...
'inputType' => 'number' // or any other widget from the above
...
Widgets
charPicker
This is used by lukasbableck/contao-title-description-bundle.
It is intended to be used in combination with a JS script and wont do anything on its own.
The widget is not designed to save any value in the database.
color
Adds a color picker widget with both a normal text input and a color input.
It's recommended to use 'rgxp' => 'color' and 'isHexColor' => true for fields with this inputType.
Aside from the color regexp, this bundle also adds colorHex, colorHexRGB and colorHexRGBA regexps.
number
Supports min and max attributes via eval.minval/eval.maxval and step via eval.step.
range
Supports min and max attributes via eval.minval/eval.maxval and step via eval.step.
Regular expressions
color
Expects a color in the format RRGGBB, where RR, GG and BB are hexadecimal values between 00 and FF.
This regexp is intended to be used in combination with the color inputType.
colorHex
Expects a color in the format #RGB, #RRGGBB, #RGBA or #RRGGBBAA, where R, G, B and A are hexadecimal values between 0 and F.
colorHexRGB
Expects a color in the format #RGB or #RRGGBB, where R, G and B are hexadecimal values between 0 and F.
colorHexRGBA
Expects a color in the format #RGBA or #RRGGBBAA, where R, G, B and A are hexadecimal values between 0 and F.
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2024-10-29