window.Asc.plugin.button(id)

Description

The buttons used with the plugin and the plugin behavior when these buttons are clicked. The method is called when any of the plugin buttons is clicked.

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