Skip to content

ConfirmationModal.addCheckbox method

ConfirmationModal › addCheckbox

Official

Add a checkbox below the message.

Signature:

addCheckbox(label: string, cb: (value: boolean) => unknown): this

Parameters:

Parameter Type Description
label string The checkbox label.
cb (value: boolean) => unknown The callback invoked when the checkbox value changes.

Returns: thisThe confirmation modal.

Since: 1.13.0