我想将选择字段设置为羊驼形,以便从其他数组中以相同形式获取数据。
无法从文档中了解其制作方式
答案 0 :(得分:0)
{"schema":{
"properties":{
"selectedEventType":{
"type":"number",
"title":"Event Type"
}
}
}
和...
{"options":{
"fields":{
"selectedEventType":{
"type": "select",
"dataSource": "/mycontroller/options/event",
"removeDefaultNone": true,
"helper": "list of selectable options"
}
}
}
在(/ mycontroller / options / event)的REST api中返回如下所示的数据:
{[ {"text":"one","value":1},{"text":"two","value":2},{"text":"three","value":3} ]}