2024-02-06 14:30:10 +08:00
|
|
|
{
|
|
|
|
"widgettype":"VBox",
|
2024-03-03 13:59:17 +08:00
|
|
|
"options":{"height":"100%", "width":"100%"},
|
2024-02-06 14:30:10 +08:00
|
|
|
"subwidgets":[
|
|
|
|
{
|
|
|
|
"widgettype":"HBox",
|
|
|
|
"options":{"height":"auto"},
|
|
|
|
"subwidgets":[
|
|
|
|
{
|
|
|
|
"widgettype":"Text",
|
|
|
|
"options":{
|
|
|
|
"otext":"Please change Font size",
|
|
|
|
"i18n":true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"widgettype":"Button",
|
|
|
|
"options":{
|
|
|
|
"label":"A",
|
|
|
|
"width":"auto",
|
|
|
|
"item_rate":1.4
|
|
|
|
},
|
|
|
|
"binds":[
|
|
|
|
{
|
|
|
|
"wid":"self",
|
|
|
|
"event":"click",
|
|
|
|
"actiontype":"script",
|
|
|
|
"target":"app",
|
2024-02-06 14:38:35 +08:00
|
|
|
"script":"bricks.app.textsize_bigger()"
|
2024-02-06 14:30:10 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"widgettype":"Button",
|
|
|
|
"options":{
|
|
|
|
"label":"A",
|
|
|
|
"width":"auto",
|
|
|
|
"item_rate":0.8
|
|
|
|
},
|
|
|
|
"binds":[
|
|
|
|
{
|
|
|
|
"wid":"self",
|
|
|
|
"event":"click",
|
|
|
|
"actiontype":"script",
|
|
|
|
"target":"app",
|
2024-02-06 14:38:35 +08:00
|
|
|
"script":"bricks.app.textsize_smaller()"
|
2024-02-06 14:30:10 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2024-03-05 13:43:58 +08:00
|
|
|
{
|
|
|
|
"widgettype":"Filler",
|
|
|
|
"options":{"overflow":"auto"},
|
|
|
|
"subwidgets":[
|
2024-02-06 14:30:10 +08:00
|
|
|
{
|
|
|
|
"widgettype":"Form",
|
|
|
|
"options":{
|
2024-03-27 13:13:18 +08:00
|
|
|
"submit_url":"{{entire_url('ttt.dspy')}}",
|
2024-02-06 14:30:10 +08:00
|
|
|
"title":"Test hahah Form",
|
|
|
|
"description":"test input implemented",
|
|
|
|
"fields":[
|
|
|
|
{
|
|
|
|
"uitype":"email",
|
|
|
|
"name":"email",
|
|
|
|
"label":"Email",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"tel",
|
|
|
|
"name":"tel",
|
|
|
|
"label":"Tel",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"file",
|
|
|
|
"name":"file",
|
|
|
|
"label":"File",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"str",
|
|
|
|
"minlength":3,
|
|
|
|
"length":30,
|
|
|
|
"value":"tlegre",
|
|
|
|
"name":"name",
|
|
|
|
"label":"Name",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"int",
|
|
|
|
"minlength":3,
|
|
|
|
"length":30,
|
|
|
|
"value":12432,
|
|
|
|
"name":"integer",
|
|
|
|
"label":"Integer",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"float",
|
|
|
|
"dec_length":3,
|
|
|
|
"length":25,
|
|
|
|
"name":"float",
|
|
|
|
"label":"Float"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"date",
|
|
|
|
"name":"date",
|
|
|
|
"label":"Date",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"password",
|
|
|
|
"minlength":3,
|
|
|
|
"length":30,
|
|
|
|
"name":"password",
|
|
|
|
"label":"Password",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"checkbox",
|
2024-03-27 11:27:24 +08:00
|
|
|
"multicheck":true,
|
2024-02-06 14:30:10 +08:00
|
|
|
"name":"checkbox",
|
|
|
|
"label":"CheckBox",
|
|
|
|
"value":2,
|
|
|
|
"dataurl":"test_code.json",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"code",
|
|
|
|
"name":"code",
|
|
|
|
"label":"Code",
|
|
|
|
"value":2,
|
|
|
|
"dataurl":"test_code.json",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
},
|
2024-06-20 17:35:25 +08:00
|
|
|
{
|
|
|
|
"uitype":"image",
|
|
|
|
"name":"Image",
|
|
|
|
"height":"100px",
|
|
|
|
"width":"100px",
|
|
|
|
"label":"Image",
|
|
|
|
"required":true
|
|
|
|
},
|
2024-02-06 14:30:10 +08:00
|
|
|
{
|
|
|
|
"uitype":"text",
|
|
|
|
"name":"text",
|
|
|
|
"value":"This is a test",
|
|
|
|
"label":"Text",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-03-21 18:12:24 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"uitype":"audiotext",
|
|
|
|
"upload_url":"https://sage.opencomputing.cn/stt/generate",
|
|
|
|
"name":"atext",
|
|
|
|
"value":"This is a test",
|
|
|
|
"label":"Text",
|
2024-04-12 14:05:13 +08:00
|
|
|
"required":true
|
2024-02-06 14:30:10 +08:00
|
|
|
}
|
|
|
|
]
|
2024-04-19 17:13:05 +08:00
|
|
|
},
|
|
|
|
"binds":[
|
|
|
|
{
|
|
|
|
"wid":"self",
|
|
|
|
"event":"submited",
|
|
|
|
"actiontype":"script",
|
|
|
|
"target":"self",
|
|
|
|
"script":"await bricks.show_resp_message_or_error(event.params)"
|
|
|
|
}
|
|
|
|
]
|
2024-02-06 14:30:10 +08:00
|
|
|
}
|
2024-03-05 13:43:58 +08:00
|
|
|
]
|
|
|
|
}
|
2024-02-06 14:30:10 +08:00
|
|
|
]
|
|
|
|
}
|