Skip to content

FileExplorerView.onFileContextMenu method

FileExplorerView › onFileContextMenu

Unofficial

Build and show the context menu for a file or folder. When the file is one of several selected items, shows the multi-file menu (files-menu) for the whole selection instead of the file-menu.

Signature:

onFileContextMenu($event: MouseEvent, file: TAbstractFile): void

Parameters:

ParameterTypeDescription
$eventMouseEvent
fileTAbstractFileThe file or folder the menu is for.

Returns: void