Class: PhlexKit::ContextMenuSeparator

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/phlex_kit/context_menu/context_menu_separator.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ ContextMenuSeparator

Returns a new instance of ContextMenuSeparator.



3
# File 'app/components/phlex_kit/context_menu/context_menu_separator.rb', line 3

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

Instance Method Details

#view_templateObject



4
5
6
# File 'app/components/phlex_kit/context_menu/context_menu_separator.rb', line 4

def view_template
  div(**mix({ role: "separator", class: "pk-context-menu-separator", aria: { orientation: "horizontal" } }, @attrs))
end