ExtraButtonComponent.onClick method
ExtraButtonComponent › onClick
Official
Set the click callback of the extra button.Signature:
onClick(callback: () => unknown): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| callback | () => unknown | The callback to call when the button is clicked. |
Returns: this — The extra button component.
Since: 0.9.7
Example:
extraButton.onClick(() => { console.log('Button clicked');});