added example of conditional dictionary

This commit is contained in:
iLLiCiTiT 2021-07-07 19:37:43 +02:00
parent ec01e148e5
commit 1cb8d0f5e8

View file

@ -9,6 +9,54 @@
"label": "Color input",
"type": "color"
},
{
"type": "dict-conditional",
"use_label_wrap": true,
"collapsible": true,
"key": "menu_items",
"label": "Menu items",
"enum_key": "type",
"enum_label": "Type",
"enum_children": [
{
"key": "action",
"label": "Action",
"children": [
{
"type": "text",
"key": "key",
"label": "Key"
},
{
"type": "text",
"key": "label",
"label": "Label"
},
{
"type": "text",
"key": "command",
"label": "Comand"
}
]
},
{
"key": "menu",
"label": "Menu",
"children": [
{
"key": "children",
"label": "Children",
"type": "list",
"object_type": "text"
}
]
},
{
"key": "separator",
"label": "Separator"
}
]
},
{
"type": "dict",
"key": "schema_template_exaples",