bricks/examples/checkbox.ui

30 lines
429 B
Plaintext
Raw Normal View History

2024-03-26 11:09:15 +08:00
{
"widgettype":"UiCheckBox",
"options":{
"name":"cb",
"multicheck":false,
"uitype":"checkbox",
"valueField":"value",
"textField":"text",
"data":[
{
"value":"test1",
"text":"Test1"
},
{
"value":"test2",
"text":"Test 2"
}
]
},
"binds":[
{
"wid":"self",
"event":"changed",
"actiontype":"script",
"target":"self",
"script":"alert(JSON.stringify(event.params))"
}
]
}