Options
All
  • Public
  • Public/Protected
  • All
Menu

Module filebrowser-extension

Index

Variables

Const default

default: JupyterFrontEndPlugin<any>[] = [factory,browser,shareFile,fileUploadStatus,downloadPlugin,browserWidget,launcherToolbarButton]

Export the plugins as default.

Const fileUploadStatus

fileUploadStatus: JupyterFrontEndPlugin<void> = {id: '@jupyterlab/filebrowser-extension:file-upload-status',autoStart: true,requires: [IFileBrowserFactory, ITranslator],optional: [IStatusBar],activate: (app: JupyterFrontEnd,browser: IFileBrowserFactory,translator: ITranslator,statusBar: IStatusBar | null) => {if (!statusBar) {// Automatically disable if statusbar missingreturn;}const item = new FileUploadStatus({tracker: browser.tracker,translator});statusBar.registerStatusItem('@jupyterlab/filebrowser-extension:file-upload-status',{item,align: 'middle',isActive: () => {return !!item.model && item.model.items.length > 0;},activeStateChanged: item.model.stateChanged});}}

A plugin providing file upload status.

Const launcherToolbarButton

launcherToolbarButton: JupyterFrontEndPlugin<void> = {id: '@jupyterlab/filebrowser-extension:launcher-toolbar-button',autoStart: true,requires: [IFileBrowserFactory, ITranslator],activate: (app: JupyterFrontEnd,factory: IFileBrowserFactory,translator: ITranslator) => {const { commands } = app;const trans = translator.load('jupyterlab');const { defaultBrowser: browser } = factory;// Add a launcher toolbar item.const launcher = new ToolbarButton({icon: addIcon,onClick: () => {if (commands.hasCommand('launcher:create')) {return Private.createLauncher(commands, browser);}},tooltip: trans.__('New Launcher'),actualOnClick: true});browser.toolbar.insertItem(0, 'launch', launcher);}}

A plugin to add a launcher button to the file browser toolbar

Generated using TypeDoc