Class: Panda::Core::Admin::TabBarComponent

Inherits:
Base
  • Object
show all
Defined in:
app/components/panda/core/admin/tab_bar_component.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tabs: [].freeze, **attrs) ⇒ TabBarComponent

Returns a new instance of TabBarComponent.



7
8
9
10
# File 'app/components/panda/core/admin/tab_bar_component.rb', line 7

def initialize(tabs: [].freeze, **attrs)
  @tabs = tabs
  super(**attrs)
end

Instance Attribute Details

#tabsObject (readonly)

Returns the value of attribute tabs.



12
13
14
# File 'app/components/panda/core/admin/tab_bar_component.rb', line 12

def tabs
  @tabs
end