Basic-Widgets

basic.checkbox basic.color basic.flip basic.glue basic.icon basic.input basic.listview basic.offset basic.print basic.select basic.shutter basic.slider basic.roundslider basic.stateswitch basic.symbol basic.tank basic.trigger basic.window basic.shifter


basic.window

a window with open/tilt/closed status and shutter

Parameters
{{ basic.window(id, item_value, item_window_r, item_window_l, min, max, color) }}
id
unique id for this widget
item_value
an item for the height of the shutter blades
item_window_r
an item for the window right wing status (0=closed, 1=tilt, 2=open) (optional, default = 0)
item_window_l
an item for the window left wing status (0=closed, 1=tilt, 2=open) (optional, default = 0)
min
the value for shutter on top end (optional, default 0)
max
the value for shutter at bottom end (optional, default 255)
color
color e.g. '#f00' for red (constant, 'icon0' and 'icon1' can NOT be used) (optional, default: color is icon0 if window is closed, changes to icon1 if opened)
Examples
{{ basic.window ('', 'shutter', 'window.right', 'window.left') }}
{{ basic.window ('', 'shutter', '', 'window.left', '', '', '#f00') }}
Use slider to control the shutter and switches to simulate window status
Left window:
0 1 2
   Right window:
0 1 2

Default: class icon0 / icon1 colors:  
Usage of constant custom color:    

Author: Martin Gleiss and others

Widgets

Design

Misc