UNPKG

ag-grid-enterprise

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

18 lines (17 loc) • 1.13 kB
import type { BeanCollection, Component, IMenuActionParams, MenuItemDef, WithoutGridCommon } from 'ag-grid-community'; interface ShowMenuListPopupParams { menuItems: (MenuItemDef | 'separator')[]; menuContext: WithoutGridCommon<IMenuActionParams>; /** Positions under the mouse/touch location, or under this element for keyboard invocation. */ positionBy: MouseEvent | Touch | HTMLElement; /** Refocuses the invoking element; called whenever the menu closes from the keyboard. */ restoreFocus: () => void; /** Popup container to reuse (must carry the `ag-menu` class); one is created when omitted. */ ePopup?: HTMLElement; onClosed?: () => void; } /** Whether a keydown is the keyboard equivalent of a right-click (the context-menu key or Shift+F10). */ export declare function _isContextMenuKey(event: KeyboardEvent): boolean; /** Shows `menuItems` as a modal column context menu popup and returns the function that hides it. */ export declare function _showMenuListPopup(parent: Component<any>, beans: BeanCollection, params: ShowMenuListPopupParams): (() => void) | undefined; export {};