diff --git a/sdkjs-plugins/v1/onlyoffice-types/index.d.ts b/sdkjs-plugins/v1/onlyoffice-types/index.d.ts index 0d183516..ec14deb5 100644 --- a/sdkjs-plugins/v1/onlyoffice-types/index.d.ts +++ b/sdkjs-plugins/v1/onlyoffice-types/index.d.ts @@ -21,6 +21,7 @@ interface Asc { plugin: AscPlugin; scope: Object; PluginWindow: new () => PluginWindow; + ButtonContextMenu: new () => ButtonContextMenu; } interface AscPlugin { @@ -53,6 +54,12 @@ interface PluginWindow { command: (methodName: string, payload?: any) => void; } +interface ButtonContextMenu { + text: string; + attachOnClick: (callback: () => void) => void; + addCheckers: (key: string, value?: string) => void; +} + interface ExecuteCommandCallback { (command: string, value?: any, callback?: () => void): void; }