Skip to main content

SetCustomFunctions

Updates a library of local custom functions.

Syntax​

expression.SetCustomFunctions(jsonString);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
jsonStringRequiredstringA library of custom functions in JSON format.

Returns​

This method doesn't return any data.

Example​

window.Asc.plugin.executeMethod ("SetCustomFunctions", [JSON.stringify (Content)], function () {
window.Asc.plugin.executeCommand ("close", "");
});