Class: PhlexUI::DropdownMenu
- Defined in:
- lib/phlex_ui/dropdown_menu.rb
Defined Under Namespace
Classes: Content, Item, Label, Separator, Trigger
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options: {}, **attrs) ⇒ DropdownMenu
constructor
A new instance of DropdownMenu.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options: {}, **attrs) ⇒ DropdownMenu
Returns a new instance of DropdownMenu.
5 6 7 8 9 |
# File 'lib/phlex_ui/dropdown_menu.rb', line 5 def initialize(options: {}, **attrs) @options = @options[:trigger] ||= "click" super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'lib/phlex_ui/dropdown_menu.rb', line 11 def view_template(&) div(**attrs, &) end |