Class: ElementComponent::Components::DropdownHeader
- Defined in:
- lib/element_component/components/dropdown/header.rb
Instance Attribute Summary
Attributes inherited from Element
#attributes, #contents, #element, #html
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ DropdownHeader
constructor
A new instance of DropdownHeader.
Methods inherited from Element
#add_attribute, #add_attribute!, #add_content, #add_content!, #new_element, #remove_attribute, #remove_attribute_value, #render, #reset_attributes!, #reset_contents!
Constructor Details
#initialize(**attributes) ⇒ DropdownHeader
Returns a new instance of DropdownHeader.
6 7 8 9 10 11 |
# File 'lib/element_component/components/dropdown/header.rb', line 6 def initialize(**attributes, &) super("li", &) inner = Element.new("h6", class: "dropdown-header", **attributes) @inner_header = inner end |