Class: HtmlGrid::StaticInput
- Inherits:
-
NamedComponent
- Object
- Component
- NamedComponent
- HtmlGrid::StaticInput
- Defined in:
- lib/htmlgrid/staticinput.rb
Constant Summary collapse
- LABEL =
false
Constants inherited from Component
Component::CSS_CLASS, Component::CSS_ID, Component::HTML_ATTRIBUTES, Component::HTTP_HEADERS
Instance Attribute Summary
Attributes inherited from NamedComponent
Attributes inherited from Component
#attributes, #dojo_tooltip, #label, #model, #value
Instance Method Summary collapse
Methods inherited from NamedComponent
#data_origin, #error?, #initialize
Methods inherited from Component
#_to_html, #autofill?, #css_class, #css_class=, #css_id, #css_id=, #dojo_dynamic_html, #dojo_parse_on_load, #dojo_tag, #dojo_title=, #dynamic_html, #escape, #escape_symbols, #formname, #http_headers, #initialize, #label?, #onclick=, #onload=, #onsubmit=, #set_attribute, #tabindex=
Constructor Details
This class inherits a constructor from HtmlGrid::NamedComponent
Instance Method Details
#init ⇒ Object
32 33 34 35 |
# File 'lib/htmlgrid/staticinput.rb', line 32 def init super @attributes["value"] = @lookandfeel.lookup(@name) end |
#to_html(context) ⇒ Object
37 38 39 |
# File 'lib/htmlgrid/staticinput.rb', line 37 def to_html(context) context.input(@attributes) end |