UNPKG

1.32 kBTypeScriptView Raw
1import { IRankedMenu, RankedMenu } from '@jupyterlab/ui-components';
2import { SemanticCommand } from '@jupyterlab/apputils';
3/**
4 * An interface for a File menu.
5 */
6export interface IFileMenu extends IRankedMenu {
7 /**
8 * Option to add a `Quit` entry in the File menu
9 */
10 quitEntry: boolean;
11 /**
12 * A submenu for creating new files/launching new activities.
13 */
14 readonly newMenu: IRankedMenu;
15 /**
16 * The close and cleanup semantic command.
17 */
18 readonly closeAndCleaners: SemanticCommand;
19 /**
20 * The console creator semantic command.
21 */
22 readonly consoleCreators: SemanticCommand;
23}
24/**
25 * An extensible FileMenu for the application.
26 */
27export declare class FileMenu extends RankedMenu implements IFileMenu {
28 constructor(options: IRankedMenu.IOptions);
29 /**
30 * The New submenu.
31 */
32 get newMenu(): RankedMenu;
33 /**
34 * The close and cleanup semantic command.
35 */
36 readonly closeAndCleaners: SemanticCommand;
37 /**
38 * The console creator semantic command.
39 */
40 readonly consoleCreators: SemanticCommand;
41 /**
42 * Dispose of the resources held by the file menu.
43 */
44 dispose(): void;
45 /**
46 * Option to add a `Quit` entry in File menu
47 */
48 quitEntry: boolean;
49 private _newMenu;
50}