API Reference > ui-abstract > Admin > UiAdmin > showContextMenu showContextMenu Method Show a context menu at a particular location. showContextMenu(_menuItemsProps: AbstractMenuItemProps[], _location: XAndY, _htmlElement?: HTMLElement): boolean Parameter Type Description _menuItemsProps AbstractMenuItemProps[] Properties of the menu items to display. _location XAndY Location of the context menu, relative to the origin of htmlElement or the window. _htmlElement HTMLElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window. Returns - boolean true if the menu was displayed, false if the menu could not be displayed. Defined in ui/abstract/src/ui-abstract/UiAdmin.ts Line 35 Last Updated: 13 June, 2024