Setting.addExtraButton method
Setting › addExtraButton
Official
Add an extra button to the setting.Signature:
addExtraButton(cb: (component: ExtraButtonComponent) => unknown): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| cb | (component: ExtraButtonComponent) => unknown | The callback to add the extra button. |
Returns: this — The setting.
Since: 0.9.16
Example:
setting.addExtraButton((extraButton) => { extraButton.setIcon('dice');});