简体   繁体   中英

New field types in Gentics Mesh schema

I'd like to add custom field types like 'email' or other strings that could use regex validation.

Also, numeric fields with validation like < or > or formatting like money.

I was thinking about storing a mapping of schema uuid + field name + field type, and have the UI query a new rest api to get the validation and formatting criteria when editing a node?

Does that sound like a good approach? or is there a better one?

I'm new to mesh, so I'm still learning how to approach customizations.

Thanks!

I think this relates to issue 112 . At the moment it is not possible to add custom validation or custom field types. In the future more specific constraints can be added. Additionally we also plan to add a "control" property to schema fields. This field can be used to store any JSON. This JSON control property value can in turn be used in the UI to add custom form behavior or control how front-ends display/handle the value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM