tiny-electron-essentials
Version:
A lightweight and modular utility library for Electron apps, offering simplified window management, tray support, IPC channels, and custom frameless window styling.
18 lines • 561 B
text/typescript
export type MenuDropdown = {
/**
* - The text label displayed for this menu item.
*/
label: string;
/**
* -
* The function to execute when this item is clicked. Optional if 'items' is provided.
*/
onClick?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | undefined;
/**
* -
* A list of child menu items for creating submenus.
* If provided, this item becomes a parent to a nested dropdown.
*/
items?: MenuDropdown[] | undefined;
};
//# sourceMappingURL=TinyWindowFrameManager.d.mts.map