Class: OpenHAB::DSL::Sitemaps::SwitchBuilder
- Inherits:
-
WidgetBuilder
- Object
- WidgetBuilder
- OpenHAB::DSL::Sitemaps::SwitchBuilder
- Defined in:
- lib/openhab/dsl/sitemaps/builder.rb
Overview
Builds a Switch
element
Direct Known Subclasses
Instance Attribute Summary collapse
-
#mappings ⇒ Hash, ...
Mappings from command to label.
Attributes inherited from WidgetBuilder
#icon, #icon_colors, #item, #label, #label_colors, #value_colors, #visibilities
Method Summary
Methods inherited from WidgetBuilder
#icon_color, #label_color, #value_color, #visibility
Instance Attribute Details
#mappings ⇒ Hash, ...
Mappings from command to label
Keys can be any command, values are strings. If an array is given, the same value is used for both command and label.
235 236 237 |
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 235 def mappings @mappings end |