Basic-Widgets

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


basic.window

a window with open/tilted/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/'tilted', 2/'open') (optional, default = 0)
item_window_l
an item for the window left wing status (0/'closed', 1/'tilted', 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 for 'open' state e.g. 'icon0' through 'icon5' or '#f00' for red. Prepend a '!' to make the color constant ('!icon3'). Color is 'icon0' if window is closed and constant color is not forced. (optional)
Examples
{{ basic.window ('', 'shutter', 'window.left', 'window.right') }}
{{ basic.window ('', 'shutter', '', 'window.right', '', '', '#f00') }}
{{ basic.window ('', 'shutter', 'window.left', 'window.right', '', '', '!icon3') }}
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 custom color for 'open':     reacting only on right wing since no item for left wing is given
Usage of constant custom color:    

Author: Martin Gleiß and others

Widgets

Design

Misc