Class: BulmaPhlex::Tabs::StimulusDataAttributes
- Inherits:
-
Data
- Object
- Data
- BulmaPhlex::Tabs::StimulusDataAttributes
- Defined in:
- lib/bulma_phlex/tabs.rb
Instance Attribute Summary collapse
-
#stimulus_controller ⇒ Object
readonly
Returns the value of attribute stimulus_controller.
Instance Method Summary collapse
Instance Attribute Details
#stimulus_controller ⇒ Object (readonly)
Returns the value of attribute stimulus_controller
31 32 33 |
# File 'lib/bulma_phlex/tabs.rb', line 31 def stimulus_controller @stimulus_controller end |
Instance Method Details
#for_container ⇒ Object
32 33 34 |
# File 'lib/bulma_phlex/tabs.rb', line 32 def for_container { controller: stimulus_controller } end |
#for_content(_id) ⇒ Object
44 45 46 |
# File 'lib/bulma_phlex/tabs.rb', line 44 def for_content(_id) { target_key => "content" } end |
#for_tab(id) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/bulma_phlex/tabs.rb', line 36 def for_tab(id) { target_key => "tab", tab_content: id, action: "click->#{stimulus_controller}#showTabContent" } end |