Class: Ui::Tabs::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::Tabs::Component
- Defined in:
- lib/uikit_rails/templates/components/tabs/component.rb
Overview
Tabbed content panels.
Defined Under Namespace
Classes: Tab
Instance Attribute Summary collapse
-
#default_tab ⇒ Object
readonly
Returns the value of attribute default_tab.
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
Instance Method Summary collapse
-
#initialize(default_tab: nil, **html_attrs) ⇒ Component
constructor
A new instance of Component.
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_tab ⇒ Object (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_attrs ⇒ Object (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 |