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). 
- 
  
    
      #release_only  ⇒ true, ... 
    
    
  
  
  
  
    
    
      writeonly
    
  
  
  
  
  
  
    Only send the command when the slider is released. 
- 
  
    
      #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, #static_icon, #value_colors, #visibilities
Instance Method Summary collapse
- 
  
    
      #release_only?  ⇒ true, ... 
    
    
  
  
  
  
  
  
  
  
  
    Only send the command when the slider is released. 
- 
  
    
      #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
Methods included from Core::EntityLookup
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup
Instance Attribute Details
#frequency ⇒ Numeric?
How often to send requests (in seconds)
| 401 402 403 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 401 def frequency @frequency end | 
#release_only=(value) ⇒ true, ... (writeonly)
Only send the command when the slider is released
| 408 409 410 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 408 def release_only=(value) @release_only = value end | 
#switch=(value) ⇒ true, ... (writeonly)
This parameter only works on Android
A short press on the item toggles the item on or off
| 405 406 407 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 405 def switch=(value) @switch = value end | 
Instance Method Details
#release_only? ⇒ true, ...
Only send the command when the slider is released
| 433 434 435 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 433 def release_only? @release_only end | 
#switch? ⇒ true, ...
This parameter only works on Android
A short press on the item toggles the item on or off
| 428 429 430 | # File 'lib/openhab/dsl/sitemaps/builder.rb', line 428 def switch? @switch end | 
 
          