Доброго дня!
Есть просьба (предложение) разрешить в описательной части использовать target="_blank" для ссылок. Сейчас они отсекаются и приходится при клике зажимать ctrl.
"translations": {
"ru": {
"more_desc": "Полная документация доступна на портале <a href='https://support.wirenboard.com/' target='_blank'>поддержки</a>"
}
}
И основное - это вопрос как можно организовать видимость полей в массиве data на основе выбранного значения в settings?
Попробовал способ из статьи, но успеха не дало.
Хочется чтобы при разном выборе открывался разый набор полей. А главное чтобы всё обратно вычитывалось из конфигурационного файла при открытии.
Пример схемы:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "Show or hide on enum selection",
"properties": {
"settings": {
"title": "Select option",
"type": "string",
"enum": [
"option1",
"option2",
"option3"
],
"default": "option1",
"propertyOrder": 1
},
"data": {
"title": "Data",
"type": "object",
"properties": {
"field1": {
"type": "string",
"options": {
"dependencies": {
"settings": ["option1"]
}
}
},
"field2": {"type": "string"},
"field3": {"type": "string"}
},
"options": {
"wb": {
"disable_panel": true,
"disable_title": true
}
},
"propertyOrder": 2
}
},
"options": {
"disable_collapse": true,
"wb": {
"disable_panel": true,
"disable_title": true
}
},
"configFile": {
"path": "/etc/wb-sample-file.conf"
}
}
И пример файла wb-sample-file.conf:
{
"data": {
"field1": "how",
"field2": "to",
"field3": "hide"
},
"settings": "option1"
}