How to use the @jupyterlab/statusbar.showPopup function in @jupyterlab/statusbar

To help you get started, we’ve selected a few @jupyterlab/statusbar 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 / packages / fileeditor / src / tabspacestatus.tsx View on Github external
private _handleClick(): void {
    const menu = this._menu;
    if (this._popup) {
      this._popup.dispose();
    }

    menu.aboutToClose.connect(this._menuClosed, this);

    this._popup = showPopup({
      body: menu,
      anchor: this,
      align: 'right'
    });
  }
github jupyterlab / jupyterlab / packages / codemirror / src / syntaxstatus.tsx View on Github external
.forEach(spec => {
        if (spec.mode.indexOf('brainf') === 0) {
          return;
        }

        let args: JSONObject = {
          insertSpaces: true,
          name: spec.name!
        };

        modeMenu.addItem({
          command,
          args
        });
      });
    this._popup = showPopup({
      body: modeMenu,
      anchor: this,
      align: 'left'
    });
  };
github krassowski / jupyterlab-lsp / packages / jupyterlab-lsp / src / adapters / jupyterlab / components / statusbar.tsx View on Github external
handleClick = () => {
    if (this._popup) {
      this._popup.dispose();
    }
    this._popup = showPopup({
      body: new LSPPopup(this.model),
      anchor: this,
      align: 'left'
    });
  };
}

@jupyterlab/statusbar

JupyterLab statusbar package.

BSD-3-Clause
Latest version published 4 days ago

Package Health Score

95 / 100
Full package analysis

Similar packages