Sometimes the number of structures you add becomes far too many for a dropdown. A modal with search, tagging and bigger images is available for this situation. For this we set the style
key to modal
at the same level as our values
array.
_structures:
example:
style: 'modal'
values:
- label: 'First'
value:
name:
description:
image:
- label: 'Second'
value:
heading:
subtext:
[_structures.example]
style = "modal"
[[_structures.example.values]]
label = "First"
[_structures.example.values.value]
name = ""
description = ""
image = ""
[[_structures.example.values]]
label = "Second"
[_structures.example.values.value]
heading = ""
subtext = ""
{
"_structures": {
"example": {
"style": "modal",
"values": [
{
"label": "First",
"value": {
"name": "",
"description": "",
"image": ""
}
},
{
"label": "Second",
"value": {
"heading": "",
"subtext": ""
}
}
]
}
}
}