button

button

The function called when any of the plugin buttons is clicked. It defines the buttons used with the plugin and the plugin behavior when they are clicked.

Parameters:

Name Type Description
buttonIndex number

Defines the button index in the buttons array of the 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.

Example

Copy code
window.Asc.plugin.button = function (id) {
    this.executeCommand("close", '');
};