Skip to content

Setting.addExtraButton method

Setting › addExtraButton

Official

Add an extra button to the setting.

Signature:

addExtraButton(cb: (component: ExtraButtonComponent) => unknown): this

Parameters:

Parameter Type Description
cb (component: ExtraButtonComponent) => unknown The callback to add the extra button.

Returns: thisThe setting.

Since: 0.9.16

Example:

setting.addExtraButton((extraButton) => {
extraButton.setIcon('dice');
});