This commit is contained in:
Jan Prochazka
2021-02-26 19:25:35 +01:00
parent a101f21483
commit d9387bef1f
9 changed files with 152 additions and 14 deletions

View File

@@ -7,7 +7,8 @@ export interface SubCommand {
export interface GlobalCommand {
id: string;
text: string;
category: string;
name: string;
keyText?: string;
getSubCommands?: () => SubCommand[];
onClick?: Function;
@@ -15,6 +16,7 @@ export interface GlobalCommand {
icon?: string;
toolbar?: boolean;
enabled?: boolean;
showDisabled?: boolean;
}
export default function registerCommand(command: GlobalCommand) {