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",
"values": [
{
"label": "First",
"value": {
"name": null,
"description": null,
"image": null
}
},
{
"label": "Second",
"value": {
"heading": null,
"subtext": null
}
}
]
}
}
}
[_structures.example]
style = "modal"
[[_structures.example.values]]
label = "First"
[_structures.example.values.value]
[[_structures.example.values]]
label = "Second"
[_structures.example.values.value]

