Class: PhlexKit::MenubarContent

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/menubar/menubar_content.rb

Overview

Dropdown panel of a MenubarMenu. See menubar.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ MenubarContent

Returns a new instance of MenubarContent.



4
# File 'app/components/phlex_kit/menubar/menubar_content.rb', line 4

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



5
6
7
# File 'app/components/phlex_kit/menubar/menubar_content.rb', line 5

def view_template(&)
  div(**mix({ class: "pk-menubar-content", popover: "manual", role: "menu" }, @attrs), &)
end