window.Asc.plugin.button(id)

Description

Defines the buttons used with the plugin and the plugin behavior when they are clicked. This method is called when any of the plugin buttons is clicked.

Parameters
Name Description Type
id Defines the button index in the "buttons" array of the plugin configuration config.json file. If id == -1, then the plugin considers that the 'Close window' cross button has been clicked or its operation has been somehow interrupted. number
Example
window.Asc.plugin.button = function (id) {
    this.executeCommand("close", '');
};