Class: Ui::Tabs::Component::Tab
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::Tabs::Component::Tab
- Defined in:
- lib/uikit_rails/templates/components/tabs/component.rb
Instance Attribute Summary collapse
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(id:, label:, **html_attrs) ⇒ Tab
constructor
A new instance of Tab.
Constructor Details
#initialize(id:, label:, **html_attrs) ⇒ Tab
Returns a new instance of Tab.
22 23 24 25 26 27 |
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 22 def initialize(id:, label:, **html_attrs) @id = id @label = label @html_attrs = html_attrs super() end |
Instance Attribute Details
#html_attrs ⇒ Object (readonly)
Returns the value of attribute html_attrs.
20 21 22 |
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 20 def html_attrs @html_attrs end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 20 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
20 21 22 |
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 20 def label @label end |
Instance Method Details
#call ⇒ Object
29 30 31 |
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 29 def call content end |