ContextMenuProps
Defined in: react/components/overlay/context-menu.tsx:9
Properties
Section titled “Properties”closeOnEscape?
Section titled “closeOnEscape?”
optionalcloseOnEscape?:boolean
Defined in: react/components/overlay/context-menu.tsx:23
Esc dismisses the menu. Defaults to true.
items:
MenuItem[]
Defined in: react/components/overlay/context-menu.tsx:17
The action rows.
menuStyle?
Section titled “menuStyle?”
optionalmenuStyle?:WidgetStyles
Defined in: react/components/overlay/context-menu.tsx:31
Style overrides for the menu box (e.g. minWidth).
onClose?
Section titled “onClose?”
optionalonClose?: () =>void
Defined in: react/components/overlay/context-menu.tsx:21
Called when the menu asks to close (selection, Esc, or outside click).
Returns
Section titled “Returns”void
onSelect?
Section titled “onSelect?”
optionalonSelect?: (item,index) =>void
Defined in: react/components/overlay/context-menu.tsx:19
Called with the chosen row; the menu also closes via onClose.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
open:
boolean
Defined in: react/components/overlay/context-menu.tsx:11
Whether the menu is shown.
placement?
Section titled “placement?”
optionalplacement?:OverlayPlacement
Defined in: react/components/overlay/context-menu.tsx:29
Which side of the point to prefer. auto (default) opens below and flips
across top/right/left to whichever side fits, else best-fit — always
clamped on-screen.
x:
number
Defined in: react/components/overlay/context-menu.tsx:13
Screen column to anchor the menu’s top-left at (clamped on-screen).
y:
number
Defined in: react/components/overlay/context-menu.tsx:15
Screen row to anchor the menu’s top-left at (clamped on-screen).