aboutsummaryrefslogtreecommitdiff
path: root/api/JoplinViewsMenuItems.d.ts
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2025-07-04 12:03:11 -0500
committerMark Powers <mark@marks.kitchen>2025-07-04 12:03:11 -0500
commit13feb30f3ff9b913670a5fe7c8a9c1907d2c1740 (patch)
treeab6c820b4904ee7b05cb284af87ea2afc680d628 /api/JoplinViewsMenuItems.d.ts
Initial commitmain
Diffstat (limited to 'api/JoplinViewsMenuItems.d.ts')
-rw-r--r--api/JoplinViewsMenuItems.d.ts18
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>;
+}