smartVISU
17:45,21.12, v2.7

Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue basic.rgb basic.shifter basic.shutter basic.slider basic.switch basic.symbol basic.tank basic.text basic.trigger basic.value


basic.button

A button

Parameters
{{basic.button(id, gad, txt, pic, val, type) }}
id
unique id for this widget
gad
a gad/item
txt
text printed on the button (optional)
pic
a icon or a inline pic: 'arrow-l', 'arrow-r', 'arrow-u', 'arrow-d', 'delete', 'plus', 'minus', 'check', 'gear', 'refresh', 'forward', 'back', 'grid', 'star', 'alert', 'info', 'home', 'search' (optional)
val
value send if the button is pressed (optional, default 1)
type
type: 'micro', 'mini', 'midi' (optional, default: mini)
Examples
{{ basic.button('b1', 'bath_light_switch', ...) }}
'mirco'
'mini'
'midi'
only txt
only pic (inline)
only pic (icon)
txt and pic (inline)
txt and pic (icon)
With other pictures:
arrow-l, arrow-r, arrow-u, arrow-d, delete, plus, minus, check, gear, refresh, forward, back, grid, star, alert, info, home, search Some Buttons grouped together. You may mix buttons and duals.
<span data-role="controlgroup" data-type="horizontal">
...
</span>

Widgets

Design

Misc