Class: OpenHAB::DSL::Sitemaps::SliderBuilder
- Inherits:
 - 
      SetpointBuilder
      
        
- Object
 - WidgetBuilder
 - SetpointBuilder
 - OpenHAB::DSL::Sitemaps::SliderBuilder
 
 
- Defined in:
 - lib/openhab/dsl/sitemaps/builder.rb
 
Overview
Builds a Slider element
Instance Attribute Summary collapse
- 
  
    
      #frequency  ⇒ Numeric? 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
How often to send requests (in seconds).
 - 
  
    
      #switch  ⇒ true, ... 
    
    
  
  
  
  
    
    
      writeonly
    
  
  
  
  
  
  
    
A short press on the item toggles the item on or off.
 
Attributes inherited from SetpointBuilder
Attributes inherited from WidgetBuilder
#icon, #icon_colors, #item, #label, #label_colors, #value_colors, #visibilities
Instance Method Summary collapse
- 
  
    
      #switch?  ⇒ true, ... 
    
    
  
  
  
  
  
  
  
  
  
    
A short press on the item toggles the item on or off.
 
Methods inherited from WidgetBuilder
#icon_color, #label_color, #value_color, #visibility
Instance Attribute Details
#frequency ⇒ Numeric?
How often to send requests (in seconds)
      264 265 266  | 
    
      # File 'lib/openhab/dsl/sitemaps/builder.rb', line 264 def frequency @frequency end  | 
  
#switch=(value) ⇒ true, ... (writeonly)
    Note:
    
  
This parameter only works on Android
A short press on the item toggles the item on or off
      268 269 270  | 
    
      # File 'lib/openhab/dsl/sitemaps/builder.rb', line 268 def switch=(value) @switch = value end  | 
  
Instance Method Details
#switch? ⇒ true, ...
    Note:
    
  
This parameter only works on Android
A short press on the item toggles the item on or off
      285 286 287  | 
    
      # File 'lib/openhab/dsl/sitemaps/builder.rb', line 285 def switch? @switch_enabled end  |