Basic-Widgets

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


basic.trigger

A widget to trigger a logic (e. g. in SmartHome.py)

Parameters
{{ basic.trigger(id, name, txt, pic, val, type) }}
id
unique id for this widget
name
the name of the trigger (logic)
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.trigger('trigger1', 'Dev', '', 'check') }}
{{ basic.trigger('trigger2', 'Dev', 'Trigger', '', 1) }}

Author: Martin GleiƟ and others

Widgets

Design

Misc