Class: OpenHAB::DSL::Sitemaps::InputBuilder

Inherits:
WidgetBuilder show all
Defined in:
lib/openhab/dsl/sitemaps/builder.rb

Overview

Builds an ‘Input` element

See Also:

Constant Summary collapse

VALID_HINTS =

Valid #hint values

%i[text number date time datetime].freeze

Instance Attribute Summary collapse

Attributes inherited from WidgetBuilder

#icon, #icon_colors, #item, #label, #label_colors, #static_icon, #value_colors, #visibilities

Method Summary

Methods inherited from WidgetBuilder

#icon_color, #label_color, #value_color, #visibility

Methods included from Core::EntityLookup

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup

Instance Attribute Details

#hint:text, ...

Returns Gives a hint to the user interface to use a widget adapted to a specific use.

Returns:

  • (:text, :number, :date, :time, :datetime, nil)

    Gives a hint to the user interface to use a widget adapted to a specific use



653
654
655
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 653

def hint
  @hint
end