Get Started
Documentation
Macros
More information
|
window.Asc.plugin.onMethodReturnDescription
Defines the window.Asc.plugin object method that allows returning the result of the previously executed method. It can be used to return data after executing the window.Asc.plugin.executeMethod(...) method. Usage
This method should be used in the following way: window.Asc.plugin.onMethodReturn = function(returnValue){...} Example
window.Asc.plugin.executeMethod("InsertAndReplaceContentControls", [_obj]); window.Asc.plugin.onMethodReturn = function(returnValue) { if (window.Asc.plugin.info.methodName == "InsertAndReplaceContentControls") { window.Asc.plugin.executeMethod("GetAllContentControls"); } else if ("GetAllContentControls") { window.Asc.plugin.executeCommand("close", console.log(JSON.stringify(returnValue))); } }; |
© Ascensio System SIA 2021. All rights reserved
|