How to use the @jupyterlab/filebrowser.FileButtons function in @jupyterlab/filebrowser

To help you get started, we’ve selected a few @jupyterlab/filebrowser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab / test / src / filebrowser / buttons.spec.ts View on Github external
openedWidget = null;
    commands = new CommandRegistry();
    registry = new DocumentRegistry();
    registry.addModelFactory(modelFactory);
    registry.addWidgetFactory(widgetFactory);
    manager = new DocumentManager({
      registry,
      manager: services,
      opener: {
        open: (widget: Widget) => {
          openedWidget = widget;
        }
      }
    });
    model = new FileBrowserModel({ manager: services });
    buttons = new FileButtons({ model, manager, commands });
  });