button
function button(buttonIndex: number): void
Description
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
- buttonIndex
number
Defines the button index in the {@link /plugin/config#buttons 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.
Returns
void