Skip to content

@fabwcie/free-drawing / components/Modal/constants / confirmModalDefaultOpts

Variable: confirmModalDefaultOpts ​

const confirmModalDefaultOpts: object

Defined in: packages/free-drawing/src/components/Modal/constants.ts:21

Default actions of confirmation dialog (texts: translated ones)

Type Declaration ​

onCancel ​

onCancel: (modal) => void

Hides the dialog

Parameters ​

ConfirmModal

Confirmation dialog whose Cancel button was clicked

Returns ​

void

onConfirm ​

onConfirm: (modal) => void

Clears the drawing without asking again, then hides the dialog

Parameters ​

ConfirmModal

Confirmation dialog whose Confirm button was clicked (its drawer is cleared)

Returns ​

void