- showContextMenu(params): void
Parameters
- params: {
expand?: boolean;
items: Partial<MenuItem>[];
onHide?: (() => void);
pos: Position;
searchbar?: boolean;
sort?: boolean;
target?: HTMLElement;
}Optional
expand?: boolean
items: Partial<MenuItem>[]
Optional
onHide?: (() => void)
Optional
searchbar?: boolean
Optional
sort?: boolean
Optional
target?: HTMLElement
Returns void
Shows the context menu with the given items at the given position.
Helper function to use the context menu singleton.