ConfirmationModal.addCheckbox method
ConfirmationModal › addCheckbox
Official
Add a checkbox below the message.Signature:
addCheckbox(label: string, cb: (value: boolean) => unknown): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| label | string | The checkbox label. |
| cb | (value: boolean) => unknown | The callback invoked when the checkbox value changes. |
Returns: this — The confirmation modal.
Since: 1.13.0