ButtonContextMenu

This commit is contained in:
Artur
2026-03-12 11:13:14 +03:00
parent 1b78b4a84b
commit fea8b762d8

View File

@ -21,6 +21,7 @@ interface Asc {
plugin: AscPlugin;
scope: Object<any>;
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;
}