jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
47 lines (46 loc) • 1.09 kB
TypeScript
import { Application } from 'phosphide/lib/core/application';
import { MenuItem } from 'phosphor-menus';
/**
* The main menu class. It is intended to be used as a singleton.
*/
export declare class MainMenu {
/**
* Add a new menu item to the main menu.
*/
addItem(item: MenuItem, options?: MainMenu.IAddMenuOptions): void;
private _items;
}
/**
* A namespace for MainMenu statics.
*/
export declare namespace MainMenu {
/**
* The options used to add a menu to the main menu.
*/
interface IAddMenuOptions {
/**
* The rank order of the menu among its siblings.
*/
rank?: number;
}
}
/**
* The main menu extension.
*
* #### Notes
* The main menu extension adds a menu bar to the top area
* of the application shell.
*
*/
export declare const mainMenuExtension: {
id: string;
activate: (app: Application) => void;
};
/**
* A service providing an interface to the main menu.
*/
export declare const mainMenuProvider: {
id: string;
provides: typeof MainMenu;
resolve: () => MainMenu;
};