Class: Lapillus::TextField
- Inherits:
-
FormTextComponent
- Object
- RenderableComponent
- Component
- FormComponent
- FormTextComponent
- Lapillus::TextField
- Defined in:
- lib/lapillus/form_components.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Component
#behaviours, #identifier, #model, #property, #visible
Instance Method Summary collapse
Methods inherited from FormTextComponent
#initialize, #render_to_element, #value=
Methods inherited from FormComponent
#post, #render_to_element, #value, #value=
Methods inherited from Component
#add_behaviour, #behaviour, #has_behaviour?, #has_model?, #has_parent?, #initialize, #parent, #path, #response_page=, #session, #value, #webpage
Methods inherited from RenderableComponent
#initialize, #on_render, #render_behaviours, #render_children, #render_component, #render_container, #render_to_element, #visible?
Constructor Details
This class inherits a constructor from Lapillus::FormTextComponent
Instance Method Details
#render_text(element, text) ⇒ Object
49 50 51 |
# File 'lib/lapillus/form_components.rb', line 49 def render_text(element, text) element.add_attribute('value', text) end |