When defining objects in Jutro with metadata json 5 schema, there are 5 types available. Since there are only 5 types, so the exact html tag type of the object depends on both object's type and component setting, and Jutro will make the best guess based on those information.
1. Elements
This type is for static object that do not offer a user input, like label or badge. Element type object does not have content property.
2. Container
Container object contains array of elements, other containers, fields, iterables. Container object always has a content property to define its content.
3. Field
Field object is used to describe user input elements. Field type usually do not have content property, but have a label property depending on its component setting.
4. Action
Action object is used to describe interactive or action components. For button component, its content property sets the button text.
5. Iterables
Iterable type mainly used with Accordion, tabset and table to show repeated items. It also has build-in support for empty content.
6. layout
layout type is used for setting the elements layout.
No comments:
Post a Comment