UNPKG

@laserware/hoverboard

Version:

Better context menus for Electron.

26 lines (24 loc) 687 B
/** * Options for configuring context menus in the application. */ type ContextMenuOptions = { /** * Adds the "Inspect Element" menu item to the custom context menu, which * is very useful for development. */ inspectElement?: boolean; /** * Adds context menu items to copy and open links if the target element clicked * was an anchor tag. */ linkHandlers?: boolean; }; /** * Configures context menus that can be created from the renderer process. * * @param options Options for building context menus. */ declare function configureContextMenus(options: ContextMenuOptions): { dispose(): void; }; export { configureContextMenus };