Class: FoxTail::TooltipComponent::StimulusController
- Inherits:
-
StimulusController
- Object
- StimulusController
- FoxTail::TooltipComponent::StimulusController
- Defined in:
- app/components/fox_tail/tooltip_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
80 81 82 83 84 85 86 87 88 89 90 |
# File 'app/components/fox_tail/tooltip_component.rb', line 80 def attributes( = {}) attributes = super attributes[:data][value_key(:placement)] = [:placement] attributes[:data][value_key(:offset)] = [:offset] attributes[:data][value_key(:shift)] = [:shift] attributes[:data][value_key(:inline)] = [:inline] attributes[:data][outlet_key(trigger_identifier)] = "##{[:trigger_id]}" attributes[:data][classes_key(:hidden)] = [:hidden_classes] attributes[:data][classes_key(:visible)] = [:visible_classes] attributes end |
#trigger_identifier ⇒ Object
76 77 78 |
# File 'app/components/fox_tail/tooltip_component.rb', line 76 def trigger_identifier FoxTail::TooltipTriggerComponent.stimulus_controller_identifier end |