Class: Ui::Tabs::Component::Tab

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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

#labelObject (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

#callObject



29
30
31
# File 'lib/uikit_rails/templates/components/tabs/component.rb', line 29

def call
  content
end