Class: FoxTail::FABComponent::StimulusController
- Inherits:
-
StimulusController
- Object
- StimulusController
- FoxTail::FABComponent::StimulusController
- Defined in:
- app/components/fox_tail/f_a_b_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
124 125 126 127 128 129 130 |
# File 'app/components/fox_tail/f_a_b_component.rb', line 124 def attributes( = {}) attributes = super attributes[:data][value_key(:trigger_type)] = [:trigger_type] attributes[:data][classes_key(:visible)] = [:visible_classes] attributes[:data][classes_key(:hidden)] = [:hidden_classes] attributes end |