38 lines
546 B
XML
38 lines
546 B
XML
{
|
|
"widgettype":"VBox",
|
|
"options":{},
|
|
"subwidgets":[
|
|
{
|
|
"id":"btn1",
|
|
"widgettype":"Button",
|
|
"options":{
|
|
"label":"press me"
|
|
}
|
|
},
|
|
{
|
|
"id":"txt1",
|
|
"widgettype":"Text",
|
|
"options":{
|
|
"otext":"I will dispatch a event when btn1 pressed",
|
|
"i18n":true
|
|
}
|
|
}
|
|
],
|
|
"binds":[
|
|
{
|
|
"wid":"btn1",
|
|
"event":"click",
|
|
"actiontype":"event",
|
|
"target":"txt1",
|
|
"dispatch_event":"gpc"
|
|
},
|
|
{
|
|
"wid":"txt1",
|
|
"event":"gpc",
|
|
"actiontype":"script",
|
|
"target":"self",
|
|
"script":"alert('yield');"
|
|
}
|
|
]
|
|
}
|