Skip to main content
cngx-src documentation

CngxMenuSubmenuLike

Interface

projects/common/interactive/menu/menu-submenu.token.ts

Referenced by#

Import#

import { CngxMenuSubmenuLike } from '@cngx/common/interactive'

Description#

Structural contract a CngxMenuItemSubmenu (or any submenu-aware companion) exposes so the surrounding menu trigger can drive arrow-right / arrow-left keyboard semantics through a focus-stack model. The trigger looks up a submenu by matching the active item's id against this contract's id.

Index#

Instance Properties#

hoverIntent#Signal
ReadonlyOptional

Debounced pointer intent over the submenu's combined hover surface (parent item plus popover panel). The companion only DERIVES this signal; it never opens or closes anything off it - the surrounding trigger routes intent edges through the focus stack via connectSubmenuHoverToFocusStack, so a hover-opened submenu is keyboard-visible exactly like a keyboard-opened one. Optional: a companion without a pointer surface omits it and stays keyboard-only.

Readonly

Host element id - matches the surrounding CngxMenuItem id.

Readonly

The submenu's inner menu host (its CngxMenu instance), or null while unwired. An inert companion never resolves one - the context-menu organism applies the directive to every item, so leaf items register a brain whose inner stays null; the focus stack treats those as inert.

isOpen#Signal
Readonly

Reactive open state, mirrored from the wrapped popover.

Methods#

close#void
open#void