Class: Ui::Tabs::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/uikit_rails/templates/components/tabs/component.rb

Overview

Tabbed content panels.

Defined Under Namespace

Classes: Tab

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_tab: nil, **html_attrs) ⇒ Component

Returns a new instance of Component.



13
14
15
16
17
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 13

def initialize(default_tab: nil, **html_attrs)
  @default_tab = default_tab
  @html_attrs = html_attrs
  super()
end

Instance Attribute Details

#default_tabObject (readonly)

Returns the value of attribute default_tab.



11
12
13
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 11

def default_tab
  @default_tab
end

#html_attrsObject (readonly)

Returns the value of attribute html_attrs.



11
12
13
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 11

def html_attrs
  @html_attrs
end