Class: FoxTail::PasswordInputTriggerComponent::StimulusController
- Inherits:
-
StimulusController
- Object
- StimulusController
- FoxTail::PasswordInputTriggerComponent::StimulusController
- Defined in:
- app/components/fox_tail/password_input_trigger_component.rb
Instance Attribute Summary
Attributes inherited from StimulusController
Instance Method Summary collapse
Methods inherited from StimulusController
#action, #action_param_key, #build_actions, #classes_key, #config, #event, #initialize, #merge, #merge!, #outlet_key, #target_key, #to_s, #to_sym, #value_key
Constructor Details
This class inherits a constructor from FoxTail::StimulusController
Instance Method Details
#attributes(options = {}) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'app/components/fox_tail/password_input_trigger_component.rb', line 23 def attributes( = {}) attributes = super attributes[:data][outlet_key(password_input_identifier)] = [:selector] attributes[:data][classes_key(:hidden)] = [:hidden_classes] attributes[:data][classes_key(:visible)] = [:visible_classes] attributes[:data][:action] = action(:toggle) attributes end |
#password_input_identifier ⇒ Object
19 20 21 |
# File 'app/components/fox_tail/password_input_trigger_component.rb', line 19 def password_input_identifier FoxTail::PasswordInputComponent.stimulus_controller_identifier end |