Class: FoxTail::ClickableComponent::StimulusController
- Inherits:
-
StimulusController
- Object
- StimulusController
- FoxTail::ClickableComponent::StimulusController
- Defined in:
- app/components/fox_tail/clickable_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
87 88 89 90 91 92 93 94 95 96 |
# File 'app/components/fox_tail/clickable_component.rb', line 87 def attributes( = {}) { data: { :controller => identifier, value_key(:state) => [:state] || :active, classes_key(:active) => [:active_classes], classes_key(:disabled) => [:disabled_classes] } } end |