天依蓝
自定义窗体(CustomForm)可以放置多个不同的控件,每个控件铺满一行
控件:

控件:
label
文本控件:
text(文本)
input
输入控件
default(默认值)
text(文本)
placeholder(水印文本)
toggle
开关控件
default(默认值)
text(文本)
slider
游标滑块
min(最小值)
max(最大值)
step(每块值)
default(默认值)
text(文本)
step_slider
矩阵滑块
default(默认值)
steps(矩阵数组)
text(文本)
dropdown
下拉框
default(默认值)
options(选项数组)
text(文本)
[LINE][/LINE]
以上就是控件列表了,下面放出一个控件JSON供大家参考[
{
"type": "label",
"text": "这是一个文本标签"
},
{
"placeholder": "水印文本",
"default": "",
"type": "input",
"text": ""
},
{
"default": true,
"type": "toggle",
"text": "开关~或许是吧"
},
{
"min": 0.0,
"max": 10.0,
"step": 2.0,
"default": 3.0,
"type": "slider",
"text": "游标滑块!?"
},
{
"default": 1,
"steps": [
"Step 1",
"Step 2",
"Step 3"
],
"type": "step_slider",
"text": "矩阵滑块?!"
},
{
"default": 1,
"options": [
"Option 1",
"Option 2",
"Option 3"
],
"type": "dropdown",
"text": "如你所见,下拉框"
}
]
{
"type": "label",
"text": "这是一个文本标签"
},
{
"placeholder": "水印文本",
"default": "",
"type": "input",
"text": ""
},
{
"default": true,
"type": "toggle",
"text": "开关~或许是吧"
},
{
"min": 0.0,
"max": 10.0,
"step": 2.0,
"default": 3.0,
"type": "slider",
"text": "游标滑块!?"
},
{
"default": 1,
"steps": [
"Step 1",
"Step 2",
"Step 3"
],
"type": "step_slider",
"text": "矩阵滑块?!"
},
{
"default": 1,
"options": [
"Option 1",
"Option 2",
"Option 3"
],
"type": "dropdown",
"text": "如你所见,下拉框"
}
]
