2020-10-09 19:35:46 +02:00
|
|
|
import { ToolbarButtonLocation } from './types';
|
|
|
|
import Plugin from '../Plugin';
|
|
|
|
/**
|
|
|
|
* Allows creating and managing toolbar buttons.
|
|
|
|
*
|
2020-10-21 01:35:06 +02:00
|
|
|
* [View the demo plugin](https://github.com/laurent22/joplin/tree/dev/CliClient/tests/support/plugins/register_command)
|
2020-10-09 19:35:46 +02:00
|
|
|
*/
|
|
|
|
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(commandName: string, location: ToolbarButtonLocation): Promise<void>;
|
|
|
|
}
|