Class: Protos::Dropdown::Menu

Inherits:
Popover::Content show all
Defined in:
lib/protos/dropdown/menu.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

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