There are differences between the plugins and theme component types.
I tried to make a table (expects minor errors or grouping)
Category | Functionality | Plugin Syntax | TC Syntax |
---|---|---|---|
Basic Types | String | type: string min: .. max: .. regex: .. secret: true/false global validator: class name |
type: string min: .. max: .. - - - - |
Multiline text | type: string textarea: true |
type: string textarea: true |
|
Integer | type: integer min: .. max: .. |
type: integer min: .. max: .. |
|
Float | type: float min: .. max: .. |
type: float min: .. max: .. |
|
Boolean | type: bool |
type: bool |
|
Time | type: time |
- | |
Null | type: null |
- | |
Selection Types | Enum (dropdown) | type: enum choices: [option1, option2] enum: .. |
type: enum choices: [option1, option2] |
Category | type: category |
- | |
Color | type: color |
- | |
Group | type: group |
- | |
type: email |
- | ||
Username | type: username |
- | |
List Types | Generic List | type: list allow_any: true/false |
type: list |
Simple/Compact List | type: simple_list Or type: list list_type: compact list_type: simple |
type: list list_type: compact list_type: simple |
|
Category List | type: category_list |
type: list list_type: category |
|
Group List | type: group_list |
type: list list_type: group |
|
Tag List | type: tag_list |
type: list list_type: tag |
|
Tag Group List | type: tag_group_list |
- | |
URL List | type: url_list |
- | |
Host List | type: host_list |
- | |
Value List | type: value_list |
- | |
Emoji List | type: emoji_list |
- | |
File Types | Upload | type: upload |
type: upload |
Uploaded Image List | type: uploaded_image_list |
- | |
File Size Restriction | type: file_size_restriction min: .. max: .. |
- | |
Special Types | HTML (deprecated) | type: html_deprecated |
- |
JSON Objects | deprecated | deprecated | |
Objects | - | type: objects |