1 | import { IRankedMenu, RankedMenu } from '@jupyterlab/ui-components';
|
2 | import { SemanticCommand } from '@jupyterlab/apputils';
|
3 |
|
4 |
|
5 |
|
6 | export interface IFileMenu extends IRankedMenu {
|
7 | |
8 |
|
9 |
|
10 | quitEntry: boolean;
|
11 | |
12 |
|
13 |
|
14 | readonly newMenu: IRankedMenu;
|
15 | |
16 |
|
17 |
|
18 | readonly closeAndCleaners: SemanticCommand;
|
19 | |
20 |
|
21 |
|
22 | readonly consoleCreators: SemanticCommand;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 | export 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 | }
|