codeq/passthrougheditor
Composer 安装命令:
composer require codeq/passthrougheditor
包简介
This Neos UI editor plugin takes one configured value and saves it transformed into another field.
README 文档
README
This package provides a dummy text editor that does one thing: take a value from editorOptions.value and sets it as a value.
It could be useful when doing something unusual with Dynamic Client-side Configuration.
Anyways, see an example below.
Installation
composer require '@codeq/passthrougheditor'- Start using the editor in NodeTypes.yaml, e.g.:
Some:NodeType:
properties:
geopoint:
type: Ttree\GoogleMapEditor\GeoPoint
ui:
inspector:
editor: Ttree.GoogleMapEditor/Inspector/Editors/GeoPointEditor
group: 'geo'
latitude:
type: string
ui:
inspector:
editor: CodeQ.PassthroughEditor/Inspector/Editors/PassthroughEditor
editorOptions:
value: 'ClientEval:node.properties.geopoint && node.properties.geopoint[0]'
group: 'geo'
In this example we get the latitude from geopoint property and save it in latitude property.
统计信息
- 总下载量: 112
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-24