Class: FoxTail::InputBaseComponent

Inherits:
BaseComponent show all
Includes:
Concerns::Formable, Concerns::Placeholderable
Defined in:
app/components/fox_tail/input_base_component.rb

Instance Attribute Summary

Attributes inherited from BaseComponent

#html_attributes

Instance Method Summary collapse

Methods inherited from BaseComponent

classname_merger, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class

Methods inherited from Base

fox_tail_config

Constructor Details

#initializeInputBaseComponent



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_renderObject



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