Skip to main content
cngx-src documentation

CngxContextMenuPanel

Interface

projects/ui/context-menu/context-menu-panel.ts

Referenced by#

Import#

import { CngxContextMenuPanel } from '@cngx/ui/context-menu'

Description#

Structural contract a context-menu panel exposes to CngxContextMenuFor. The trigger depends on this interface rather than the concrete CngxContextMenu class so an ejected panel skin (decompose) or a future second panel can satisfy the same seam - the CngxMenuHost precedent (CNGX_MENU_HOST) applied to the panel surface.

Index#

Instance Properties#

context#Signal
Readonly

The per-open datum while visible, null once closed.

Readonly

Popover surface the trigger drives at pointer coordinates.

Methods#

setContext#void
setContext(value: T | null)

Store the per-open datum. Called by the trigger before the popover opens.

@paramvalueT | null