Class: UI::TabsTrigger
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::TabsTrigger
- Includes:
- TabsTriggerBehavior
- Defined in:
- app/components/ui/tabs_trigger.rb
Overview
TabsTrigger component (Phlex) Button that activates associated content panel
Instance Method Summary collapse
-
#initialize(value: "", default_value: "", orientation: "horizontal", disabled: false, classes: "", attributes: {}) ⇒ TabsTrigger
constructor
A new instance of TabsTrigger.
- #view_template(&block) ⇒ Object
Methods included from TabsTriggerBehavior
#trigger_html_attributes, #trigger_state
Constructor Details
#initialize(value: "", default_value: "", orientation: "horizontal", disabled: false, classes: "", attributes: {}) ⇒ TabsTrigger
Returns a new instance of TabsTrigger.
20 21 22 23 24 25 26 27 28 |
# File 'app/components/ui/tabs_trigger.rb', line 20 def initialize(value: "", default_value: "", orientation: "horizontal", disabled: false, classes: "", attributes: {}, **) @value = value @default_value = default_value @orientation = orientation @disabled = disabled @classes = classes @attributes = attributes super() end |
Instance Method Details
#view_template(&block) ⇒ Object
30 31 32 |
# File 'app/components/ui/tabs_trigger.rb', line 30 def view_template(&block) (**trigger_html_attributes, &block) end |