typedef MixedFieldCollectionOptions
package shared.component.field
import shared.component.field.MixedFieldCollection
You can use MixedFieldCollections when you have multiple items with multiple types of possible content like text or images.
{
"key": "blocks",
"label": "Blocks",
"type": "MixedFieldCollection",
"options": {
"initialBlock": "textblock",
"blocks": [
{
"key": "textblock",
"name": "Text",
"components": [
{
"key": "text",
"label": "Text",
"type": "Wysiwyg"
}
]
},
{
"key": "imageblock",
"name": "Image",
"icon": "image",
"components": [
{
"key": "image",
"label": "Image",
"type": "Link",
"options": {
"type": "image"
}
}
]
}
]
}
}Properties
help:Null<Dynamic>
Adding help or instructional text to a field.
"help": "This field can only contain letters."show_when:Null<EitherType<ShowOptions, Array<ShowOptions>>>
The "value" can be set to "null" of "!null" to check if something is empty.