Class: FoxTail::InputBaseComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- Base
- BaseComponent
- FoxTail::InputBaseComponent
- Includes:
- Concerns::Formable, Concerns::Placeholderable
- Defined in:
- app/components/fox_tail/input_base_component.rb
Direct Known Subclasses
FileInputComponent, InputComponent, SelectComponent, TextareaComponent
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
- #before_render ⇒ Object
-
#initialize ⇒ InputBaseComponent
constructor
A new instance of InputBaseComponent.
Methods inherited from BaseComponent
classname_merger, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class
Methods inherited from Base
Constructor Details
#initialize ⇒ InputBaseComponent
10 11 12 13 14 |
# File 'app/components/fox_tail/input_base_component.rb', line 10 def initialize(*) super update_state_from_object! end |
Instance Method Details
#before_render ⇒ Object
16 17 18 19 20 |
# File 'app/components/fox_tail/input_base_component.rb', line 16 def before_render super add_default_name_and_id end |