Skip to content

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): EventRef

Parameters:

ParameterTypeDescription
name"bookmarks:bookmarks-menu"'bookmarks:bookmarks-menu'.
callback(menu: Menu, items: BookmarkItem[]) => unknownCallback function.
ctx?unknownContext.

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.