diff options
author | Mark Powers <mark@marks.kitchen> | 2025-07-04 12:03:11 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2025-07-04 12:03:11 -0500 |
commit | 13feb30f3ff9b913670a5fe7c8a9c1907d2c1740 (patch) | |
tree | ab6c820b4904ee7b05cb284af87ea2afc680d628 /api/JoplinViewsMenuItems.d.ts |
Initial commitmain
Diffstat (limited to 'api/JoplinViewsMenuItems.d.ts')
-rw-r--r-- | api/JoplinViewsMenuItems.d.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/api/JoplinViewsMenuItems.d.ts b/api/JoplinViewsMenuItems.d.ts new file mode 100644 index 0000000..5e236b1 --- /dev/null +++ b/api/JoplinViewsMenuItems.d.ts @@ -0,0 +1,18 @@ +import { CreateMenuItemOptions, MenuItemLocation } from './types'; +import Plugin from '../Plugin'; +/** + * Allows creating and managing menu items. + * + * [View the demo plugin](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/register_command) + * + * <span class="platform-desktop">desktop</span> + */ +export default class JoplinViewsMenuItems { + private store; + private plugin; + constructor(plugin: Plugin, store: any); + /** + * Creates a new menu item and associate it with the given command. You can specify under which menu the item should appear using the `location` parameter. + */ + create(id: string, commandName: string, location?: MenuItemLocation, options?: CreateMenuItemOptions): Promise<void>; +} |