StartAction, Asc.Buttons

This commit is contained in:
Artur
2026-03-13 13:08:05 +03:00
parent fea8b762d8
commit d811b88c87
2 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,7 @@ interface Asc {
scope: Object<any>;
PluginWindow: new () => PluginWindow;
ButtonContextMenu: new () => ButtonContextMenu;
Buttons: Buttons;
}
interface AscPlugin {
@ -54,6 +55,10 @@ interface PluginWindow {
command: (methodName: string, payload?: any) => void;
}
interface Buttons {
registerContextMenu: () => void;
}
interface ButtonContextMenu {
text: string;
attachOnClick: (callback: () => void) => void;

View File

@ -459,7 +459,7 @@ export type WordMethodArgs = {
ShowButton: [sBtn: string, bVisible: boolean, sAlign?: string];
ShowError: [sType: string, sDescription: string, sMethod?: string];
ShowInputHelper: [sGuid: string, w: number, h: number, isKeyboardTake: boolean];
StartAction: [sType: string, description: string | { lockScroll?: boolean }];
StartAction: [sType: string, description: string | { lockScroll?: boolean, keepSelection?: boolean }];
// Methods U
UnShowInputHelper: [sGuid: string, bIsKeyboardTake?: boolean];