Workspace.on('bookmarks:bookmarks-menu') method
Workspace › on(‘bookmarks:bookmarks-menu’)
Unofficial
Triggers when the context menu of a bookmark is opened in the Bookmarks view.Signature:
on(name: "bookmarks:bookmarks-menu", callback: (menu: Menu, items: BookmarkItem[]) => unknown, ctx?: unknown): EventRefParameters:
| Parameter | Type | Description |
|---|---|---|
| name | "bookmarks:bookmarks-menu" | 'bookmarks:bookmarks-menu'. |
| callback | (menu: Menu, items: BookmarkItem[]) => unknown | Callback function. |
| ctx? | unknown | Context. |
Returns: EventRef — Event reference.
Remarks:
items holds every selected bookmark when the menu is opened on a multiple selection, otherwise the one bookmark the menu was opened on.