Skip to content

Workspace.on('canvas:selection-menu') method

Workspace › on(‘canvas:selection-menu’)

Unofficial

Triggers when the user opens a context menu on a selection of multiple nodes in the canvas.

Signature:

on(name: "canvas:selection-menu", callback: (menu: Menu, canvasView: CanvasView) => void, ctx?: unknown): EventRef

Parameters:

ParameterTypeDescription
name"canvas:selection-menu"
callback(menu: Menu, canvasView: CanvasView) => void
ctx?unknown*(Optional)*

Returns: EventRef