Class: LesliView::Components::Tabs
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- LesliView::Components::Tabs
- Defined in:
- lib/lesli_view/components/tabs.rb
Defined Under Namespace
Classes: TabComponent
Instance Attribute Summary collapse
-
#active_tab ⇒ Object
readonly
Returns the value of attribute active_tab.
-
#vertical ⇒ Object
readonly
Returns the value of attribute vertical.
Instance Method Summary collapse
-
#initialize(active_tab: nil, vertical: false) ⇒ Tabs
constructor
A new instance of Tabs.
Constructor Details
#initialize(active_tab: nil, vertical: false) ⇒ Tabs
Returns a new instance of Tabs.
21 22 23 24 |
# File 'lib/lesli_view/components/tabs.rb', line 21 def initialize(active_tab: nil, vertical: false) @active_tab = active_tab @vertical = vertical end |
Instance Attribute Details
#active_tab ⇒ Object (readonly)
Returns the value of attribute active_tab.
19 20 21 |
# File 'lib/lesli_view/components/tabs.rb', line 19 def active_tab @active_tab end |
#vertical ⇒ Object (readonly)
Returns the value of attribute vertical.
19 20 21 |
# File 'lib/lesli_view/components/tabs.rb', line 19 def vertical @vertical end |