Workspaceon(‘files-menu’)

Workspace.on(‘files-menu’) method

Triggered when the user opens the context menu with multiple files selected in the File Explorer.

Signature:

on(name: 'files-menu', callback: (menu: Menu, files: TAbstractFile[], source: string, leaf?: WorkspaceLeaf) => any, ctx?: any): EventRef;

Parameters

ParameterTypeDescription
name’files-menu’
callback(menu: Menu, files: TAbstractFile[], source: string, leaf?: WorkspaceLeaf) any
ctxany(Optional)

Returns:

EventRef