Class: Protos::Dropdown::Menu
- Inherits:
-
Popover::Content
- Object
- Phlex::HTML
- Component
- Popover::Content
- Protos::Dropdown::Menu
- Defined in:
- lib/protos/dropdown/menu.rb
Instance Method Summary collapse
-
#view_template(&block) ⇒ Object
DOCS: The container for items in a dropdown.
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template(&block) ⇒ Object
DOCS: The container for items in a dropdown. This is a restyled Protos::Popover::Content component as the main functionality for dropdowns comes from there.
10 11 12 13 14 |
# File 'lib/protos/dropdown/menu.rb', line 10 def view_template(&block) template_tag(**template_attrs) do ul(**attrs, &block) end end |