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:

Parameter Type Description
cb (btn: ConfirmationButton) => unknown The callback that configures the button.

Returns: thisThe confirmation modal.

Since: 1.13.0