mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
17 lines
682 B
TypeScript
17 lines
682 B
TypeScript
import { CreateMenuItemOptions, MenuItemLocation } from './types';
|
|
import Plugin from '../Plugin';
|
|
/**
|
|
* Allows creating and managing menu items.
|
|
*
|
|
* [View the demo plugin](https://github.com/laurent22/joplin/CliClient/tests/support/plugins/register_command)
|
|
*/
|
|
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(commandName: string, location?: MenuItemLocation, options?: CreateMenuItemOptions): Promise<void>;
|
|
}
|