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