Skip to content

ConfirmationModal.addButton method

ConfirmationModal › addButton

Official

Add a button to the modal's button row.

Signature:

addButton(cb: (btn: ConfirmationButton) => unknown): this

Parameters:

ParameterTypeDescription
cb(btn: ConfirmationButton) => unknownThe callback that configures the button.

Returns: thisThe confirmation modal.

Since: 1.13.0