diff --git a/examples/floaticonbar.ui b/examples/floaticonbar.ui new file mode 100644 index 0000000..50162de --- /dev/null +++ b/examples/floaticonbar.ui @@ -0,0 +1,18 @@ +{ + "widgettype":"FloatIconBar", + "options":{ + "tools":[ + { + "icon":"{{entire_url('../imgs/add.png')}}", + "name":"add", + "rate":1.5, + "tip":"add a record" + }, + { + "icon":"{{entire_url('../imgs/delete.png')}}", + "name":"delete", + "tip":"delete a record" + }], + } +} + diff --git a/examples/floaticontextbar.ui b/examples/floaticontextbar.ui new file mode 100644 index 0000000..0adc782 --- /dev/null +++ b/examples/floaticontextbar.ui @@ -0,0 +1,19 @@ +{ + "widgettype":"FloatIconTextBar", + "options":{ + "tools":[ + { + "name":"add", + "icon":"{{entire_url('../imgs/add.png')}}", + "label":"add", + "tip":"add a record" + }, + { + "icon":"{{entire_url('../imgs/delete.png')}}", + "name":"delete", + "label":"delete", + "tip":"delete a record" + }], + } +} + diff --git a/examples/iconbar.ui b/examples/iconbar.ui new file mode 100644 index 0000000..977a57e --- /dev/null +++ b/examples/iconbar.ui @@ -0,0 +1,20 @@ +{ + "widgettype":"IconBar", + "options":{ + "tools":[ + { + "icon":"{{entire_url('../imgs/add.png')}}", + "name":"add", + "rate":1.5, + "label":"add", + "tip":"add a record" + }, + { + "icon":"{{entire_url('../imgs/delete.png')}}", + "name":"delete", + "label":"delete", + "tip":"delete a record" + }], + } +} + diff --git a/examples/icontextbar.ui b/examples/icontextbar.ui new file mode 100644 index 0000000..f4754c9 --- /dev/null +++ b/examples/icontextbar.ui @@ -0,0 +1,20 @@ +{ + "widgettype":"IconTextBar", + "options":{ + "tools":[ + { + "icon":"{{entire_url('../imgs/add.png')}}", + "name":"add", + "rate":1.5, + "label":"add", + "tip":"add a record" + }, + { + "icon":"{{entire_url('../imgs/delete.png')}}", + "name":"delete", + "label":"delete", + "tip":"delete a record" + }], + } +} + diff --git a/examples/vbox.ui b/examples/vbox.ui new file mode 100644 index 0000000..ba251b6 --- /dev/null +++ b/examples/vbox.ui @@ -0,0 +1,97 @@ + +{ + "widgettype":"VBox", + "options":{ + }, + "subwidgets":[ + { + "widgettype":"Title1", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"Title2", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"Title3", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"Title4", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"Title5", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"Title6", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"Text", + "options":{ + "text":"Pic Viewer", + "i18n":true + } + }, + { + "widgettype":"HBox", + "options":{ + }, + "subwidgets":[ + { + "widgettype":"Button", + "options":{ + "label":"A", + "item_rate":1.4 + }, + "binds":[ + { + "wid":"self", + "event":"click", + "actiontype":"script", + "target":"app", + "script":"bricks_app.textsize_bigger()" + } + ] + }, + { + "widgettype":"Button", + "options":{ + "label":"A", + "item_rate":0.7, + "item_size":"20px" + }, + "binds":[ + { + "wid":"self", + "event":"click", + "actiontype":"script", + "target":"app", + "script":"bricks_app.textsize_smaller()" + } + ] + } + ] + } + ] +}