diff options
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>; +} |