UNPKG

@blueprintjs/core

Version:
15 lines (14 loc) 611 B
export interface IOffset { left: number; top: number; } /** * Show the given menu element at the given offset from the top-left corner of the viewport. * The menu will appear below-right of this point and will flip to below-left if there is not enough * room onscreen. The optional callback will be invoked when this menu closes. */ export declare function show(menu: JSX.Element, offset: IOffset, onClose?: () => void): void; /** Hide the open context menu. */ export declare function hide(): void; /** Return whether a context menu is currently open. */ export declare function isOpen(): boolean;