1 | import { Disposable } from '../disposable';
|
2 | import { CompoundMenuNode, CompoundMenuNodeRole, MenuNode, MutableCompoundMenuNode, SubMenuOptions } from './menu-types';
|
3 |
|
4 |
|
5 |
|
6 | export declare class CompositeMenuNode implements MutableCompoundMenuNode {
|
7 | readonly id: string;
|
8 | label?: string | undefined;
|
9 | readonly parent?: (import("./menu-types").MenuNodeMetadata & import("./menu-types").MenuNodeRenderingData & Partial<CompoundMenuNode> & Partial<import("./menu-types").CommandMenuNode> & Partial<import("./menu-types").AlternativeHandlerMenuNode> & CompoundMenuNode) | undefined;
|
10 | protected readonly _children: MenuNode[];
|
11 | iconClass?: string;
|
12 | order?: string;
|
13 | protected _when?: string;
|
14 | protected _role?: CompoundMenuNodeRole;
|
15 | constructor(id: string, label?: string | undefined, options?: SubMenuOptions, parent?: (import("./menu-types").MenuNodeMetadata & import("./menu-types").MenuNodeRenderingData & Partial<CompoundMenuNode> & Partial<import("./menu-types").CommandMenuNode> & Partial<import("./menu-types").AlternativeHandlerMenuNode> & CompoundMenuNode) | undefined);
|
16 | get when(): string | undefined;
|
17 | get icon(): string | undefined;
|
18 | get children(): ReadonlyArray<MenuNode>;
|
19 | get role(): CompoundMenuNodeRole;
|
20 | addNode(node: MenuNode): Disposable;
|
21 | removeNode(id: string): void;
|
22 | updateOptions(options?: SubMenuOptions): void;
|
23 | get sortString(): string;
|
24 | get isSubmenu(): boolean;
|
25 | /** @deprecated @since 1.28 use CompoundMenuNode.isNavigationGroup instead */
|
26 | static isNavigationGroup: typeof CompoundMenuNode.isNavigationGroup;
|
27 | }
|
28 | export declare class CompositeMenuNodeWrapper implements MutableCompoundMenuNode {
|
29 | protected readonly wrapped: Readonly<MutableCompoundMenuNode>;
|
30 | readonly parent: CompoundMenuNode;
|
31 | protected readonly options?: SubMenuOptions | undefined;
|
32 | constructor(wrapped: Readonly<MutableCompoundMenuNode>, parent: CompoundMenuNode, options?: SubMenuOptions | undefined);
|
33 | get id(): string;
|
34 | get label(): string | undefined;
|
35 | get sortString(): string;
|
36 | get isSubmenu(): boolean;
|
37 | get role(): CompoundMenuNodeRole;
|
38 | get icon(): string | undefined;
|
39 | get iconClass(): string | undefined;
|
40 | get order(): string | undefined;
|
41 | get when(): string | undefined;
|
42 | get children(): ReadonlyArray<MenuNode>;
|
43 | addNode(node: MenuNode): Disposable;
|
44 | removeNode(id: string): void;
|
45 | updateOptions(options: SubMenuOptions): void;
|
46 | }
|
47 | //# sourceMappingURL=composite-menu-node.d.ts.map |
\ | No newline at end of file |