UNPKG

882 BTypeScriptView Raw
1import { CommandRegistry } from '../command';
2import { AlternativeHandlerMenuNode, CommandMenuNode, MenuAction, MenuNode } from './menu-types';
3/**
4 * Node representing an action in the menu tree structure.
5 * It's based on {@link MenuAction} for which it tries to determine the
6 * best label, icon and sortString with the given data.
7 */
8export declare class ActionMenuNode implements MenuNode, CommandMenuNode, Partial<AlternativeHandlerMenuNode> {
9 protected readonly action: MenuAction;
10 protected readonly commands: CommandRegistry;
11 readonly altNode: ActionMenuNode | undefined;
12 constructor(action: MenuAction, commands: CommandRegistry);
13 get command(): string;
14 get when(): string | undefined;
15 get id(): string;
16 get label(): string;
17 get icon(): string | undefined;
18 get sortString(): string;
19}
20//# sourceMappingURL=action-menu-node.d.ts.map
\No newline at end of file