Dialog Instance
dialog - the instance of dialog returned from createConfirmDialog
. It contains a bunch of methods and hooks to control your modal dialog.
reveal()
reveal()
- Method. It shows the component
isRevealed
isRevealed
- ComputedRef
onConfirm(() => {})
onConfirm(() => {})
- hook that gets a callback for user's confirmation
onCancel(() => {})
onCancel(() => {})
- hook that gets a callback for user's canceling
close()
close()
- close the dialog without triggering any hook and don't change isRevealed
closeAll()
closeAll()
- close all open dialogs