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/JoplinViewsToolbarButtons.d.ts |
Initial commitmain
Diffstat (limited to 'api/JoplinViewsToolbarButtons.d.ts')
-rw-r--r-- | api/JoplinViewsToolbarButtons.d.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/api/JoplinViewsToolbarButtons.d.ts b/api/JoplinViewsToolbarButtons.d.ts new file mode 100644 index 0000000..ba17c83 --- /dev/null +++ b/api/JoplinViewsToolbarButtons.d.ts @@ -0,0 +1,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>; +} |