Class: PhlexKit::ContextMenuGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ContextMenuGroup
- Defined in:
- app/components/phlex_kit/context_menu/context_menu_group.rb
Overview
Grouping wrapper for related rows (with an optional leading ContextMenuLabel). Mirrors shadcn/ui's ContextMenuGroup. See context_menu.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ContextMenuGroup
constructor
A new instance of ContextMenuGroup.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ContextMenuGroup
Returns a new instance of ContextMenuGroup.
5 |
# File 'app/components/phlex_kit/context_menu/context_menu_group.rb', line 5 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
6 7 8 |
# File 'app/components/phlex_kit/context_menu/context_menu_group.rb', line 6 def view_template(&) div(**mix({ class: "pk-context-menu-group", role: "group" }, @attrs), &) end |