/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiss and others * @copyright 2012 - 2016 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ /** * Small Shutter * * @param {id=} unique id for this widget * @param {text=} name of the shutter * @param {item(bool,num)=} a gad/item for long move (optional) * @param {item(bool,num)=} a gad/item for short move (optional) * @param {item(num)} a gad/item for the actual position */ {% macro smallshut(id, txt, gad_move, gad_stop, gad_position) %} {% import "@widgets/basic.html" as basic %} {% set uid = uid(page, id) %} /** Design */
{% if txt %} {{ txt }} {% endif %} | {% if gad_move %} {{ basic.stateswitch(id~'up', gad_move, 'micro', '1', 'arrow-u', '', 'icon0') }} {% endif %} | {% if gad_stop %} {{ basic.stateswitch(id~'stop', gad_stop, 'micro', '1', 'audio_stop.svg', '', 'icon0') }} {% endif %} | {% if gad_move %} {{ basic.stateswitch(id~'down', gad_move, 'micro', '0', 'arrow-d', '', 'icon0') }} {% endif %} | {{ basic.print(id~'position', gad_position, '%', '( VAR )') }} |
---|