mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
StartAction, Asc.Buttons
This commit is contained in:
5
sdkjs-plugins/v1/onlyoffice-types/index.d.ts
vendored
5
sdkjs-plugins/v1/onlyoffice-types/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user