Class: PhlexUI::DropdownMenu::Item
- Defined in:
- lib/phlex_ui/dropdown_menu/item.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(href: "#", **attrs) ⇒ Item
constructor
A new instance of Item.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(href: "#", **attrs) ⇒ Item
Returns a new instance of Item.
5 6 7 8 |
# File 'lib/phlex_ui/dropdown_menu/item.rb', line 5 def initialize(href: "#", **attrs) @href = href super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 |
# File 'lib/phlex_ui/dropdown_menu/item.rb', line 10 def view_template(&) a(**attrs, &) end |