Class: Ui::Dropdown::Component::LabelItem
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::Dropdown::Component::LabelItem
- Defined in:
- lib/uikit_rails/templates/components/dropdown/component.rb
Instance Attribute Summary collapse
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**html_attrs) ⇒ LabelItem
constructor
A new instance of LabelItem.
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_attrs ⇒ Object (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
#call ⇒ Object
56 57 58 |
# File 'lib/uikit_rails/templates/components/dropdown/component.rb', line 56 def call content_tag(:div, content, class: "ui-dropdown__label", **html_attrs) end |