device.window
Displays window status and a simple shutter control assembly in a popup
Parameters
{{ device.window(id, txt, item_move, item_stop, item_pos, item_shade, item_window_r, item_window_l, type, min, max, step, color) }}
id
unique id for this widget
txt
title of the window (optional)
item_move
item for the up- and down- movement of the shutter
item_stop
item for stopping the movement of the shutter (optional)
item_pos
item for the position of the shutter (optional)
item_shade
item to move the shutters to the shade position (optional)
item_window_r
item to display the window's right wing status (optional)
item_window_l
item to display the window's left wing status (optional)
type
type: 'micro', 'mini', 'midi', 'icon' (optional, default: mini)
min
the value for opened (optional, default 0)
max
the value for closed (optional, default 255)
step
step between two values (optional, default 5)
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
Author: Martin Gleiss