Class: UI::TabsList
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::TabsList
- Includes:
- TabsListBehavior
- Defined in:
- app/components/ui/tabs_list.rb
Overview
TabsList component (Phlex) Container for tab trigger buttons
Instance Method Summary collapse
-
#initialize(orientation: "horizontal", classes: "", attributes: {}) ⇒ TabsList
constructor
A new instance of TabsList.
- #view_template(&block) ⇒ Object
Methods included from TabsListBehavior
Constructor Details
#initialize(orientation: "horizontal", classes: "", attributes: {}) ⇒ TabsList
Returns a new instance of TabsList.
17 18 19 20 21 22 |
# File 'app/components/ui/tabs_list.rb', line 17 def initialize(orientation: "horizontal", classes: "", attributes: {}, **) @orientation = orientation @classes = classes @attributes = attributes super() end |
Instance Method Details
#view_template(&block) ⇒ Object
24 25 26 |
# File 'app/components/ui/tabs_list.rb', line 24 def view_template(&block) div(**list_html_attributes, &block) end |