aboutsummaryrefslogtreecommitdiff
path: root/api/JoplinViewsToolbarButtons.d.ts
blob: ba17c83e345d5ed033031b8c472627c9085feea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { ToolbarButtonLocation } from './types';
import Plugin from '../Plugin';
/**
 * Allows creating and managing toolbar buttons.
 *
 * [View the demo plugin](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/register_command)
 */
export default class JoplinViewsToolbarButtons {
    private store;
    private plugin;
    constructor(plugin: Plugin, store: any);
    /**
     * Creates a new toolbar button and associate it with the given command.
     */
    create(id: string, commandName: string, location: ToolbarButtonLocation): Promise<void>;
}