Class: LesliView::Components::Tabs

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/lesli_view/components/tabs.rb

Defined Under Namespace

Classes: TabComponent

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tabObject (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

#verticalObject (readonly)

Returns the value of attribute vertical.



19
20
21
# File 'lib/lesli_view/components/tabs.rb', line 19

def vertical
  @vertical
end