Skip to content

NotebookNavigatorMenus.registerFileMenu method

NotebookNavigatorMenus › registerFileMenu

Registers a contributor to the file context menu.

Signature:

registerFileMenu(callback: (context: NotebookNavigatorFileMenuContext) => void): NotebookNavigatorMenuDispose

Parameters:

ParameterTypeDescription
callback(context: NotebookNavigatorFileMenuContext) => voidInvoked while the menu is being built.

Returns: NotebookNavigatorMenuDisposeA function that unregisters the contributor.