tiramisu-api-python/test/data/subconfig_choice1_requires.json

1 line
1016 B
JSON
Raw Normal View History

2019-02-14 21:51:49 +01:00
{"schema": {"choice1_requires.options": {"name": "choice1_requires.options", "properties": {"choice1_requires.options.choice": {"name": "choice1_requires.options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "choice1_requires.options.unicode2": {"name": "choice1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_requires.options.choice", "required": true, "value": "hide", "owner": "default"}, {"key": "choice1_requires.options.unicode2", "hidden": true}], "form": [{"key": "choice1_requires.options.choice", "clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"hide": {"hide": ["choice1_requires.options.unicode2"]}, "show": {"show": ["choice1_requires.options.unicode2"]}}}}, {"key": "choice1_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]}