tiramisu/tests/dict/data/choice1_requires.json
2019-04-22 10:51:44 +02:00

68 lines
No EOL
1.2 KiB
JSON

{
"schema": {
"options": {
"properties": {
"options.choice": {
"type": "choice",
"value": "hide",
"enum": [
"hide",
"show"
],
"title": "Choice description"
},
"options.unicode2": {
"type": "string",
"title": "Unicode 2"
}
},
"type": "object",
"title": "Common configuration"
}
},
"model": {
"options.choice": {
"required": true,
"value": "hide",
"owner": "default"
},
"options.unicode2": {
"hidden": true
}
},
"form": {
"options.choice": {
"clearable": true,
"type": "choice",
"dependencies": {
"default": {
"show": [
"options.unicode2"
]
},
"expected": {
"hide": {
"hide": [
"options.unicode2"
]
},
"show": {
"show": [
"options.unicode2"
]
}
}
}
},
"options.unicode2": {
"type": "input"
},
"null": [
{
"title": "Configurer",
"type": "submit"
}
]
},
"version": "1.0"
}