Class: Ui::Dropdown::Component::LabelItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**html_attrs) ⇒ LabelItem

Returns a new instance of LabelItem.



51
52
53
54
# File 'lib/uikit_rails/templates/components/dropdown/component.rb', line 51

def initialize(**html_attrs)
  @html_attrs = html_attrs
  super()
end

Instance Attribute Details

#html_attrsObject (readonly)

Returns the value of attribute html_attrs.



49
50
51
# File 'lib/uikit_rails/templates/components/dropdown/component.rb', line 49

def html_attrs
  @html_attrs
end

Instance Method Details

#callObject



56
57
58
# File 'lib/uikit_rails/templates/components/dropdown/component.rb', line 56

def call
  (:div, content, class: "ui-dropdown__label", **html_attrs)
end