Class: PhlexKit::ContextMenuSub
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ContextMenuSub
- Defined in:
- app/components/phlex_kit/context_menu/context_menu_sub.rb
Overview
Nested submenu wrapper: SubTrigger row + SubContent panel, revealed on hover/focus with pure CSS (no extra controller). Mirrors shadcn/ui's ContextMenuSub. See context_menu.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ContextMenuSub
constructor
A new instance of ContextMenuSub.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ContextMenuSub
Returns a new instance of ContextMenuSub.
6 |
# File 'app/components/phlex_kit/context_menu/context_menu_sub.rb', line 6 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
7 8 9 |
# File 'app/components/phlex_kit/context_menu/context_menu_sub.rb', line 7 def view_template(&) div(**mix({ class: "pk-context-menu-sub" }, @attrs), &) end |