shel / neos-rangeeditor
1.1.1
2021-11-16 12:12 UTC
Requires
- neos/neos: ^5.3 || ^7.0
- neos/neos-ui: ^5.3 || ^7.0
README
简介
此软件包为 Neos CMS UI 提供数字范围编辑器。可以定义最小值、最大值和步长,并额外提供一个单位标签,以便于编辑。
如果需要输入某个特定值,也可以点击当前值直接输入所需的值。
⚠️ 此插件仅适用于 Neos 版本 7 之前。从那时起,它已被转换为 核心功能。
示例
安装
在您的站点包中运行以下命令
composer require --no-update shel/neos-rangeeditor
然后在您的项目目录中运行 composer update
。
如何使用
添加一个字符串类型的属性,并将编辑器配置如下示例所示
'My.Site:Content.Text':
superTypes:
'Neos.Neos:Content': true
ui:
label: 'My text content'
properties:
textColor:
type: string
ui:
label: 'Text color'
reloadIfChanged: true
inspector:
group: 'text'
editor: 'Shel.Neos.RangeEditor/RangeEditor'
editorOptions:
min: 0
max: 100
step: 5
unit: 'px'
贡献
欢迎贡献!
请创建详细的 issue 和 PR。
感谢赞助商
此软件包的初始开发由 Code Q Web Factory 赞助。