Interface: ConfirmationModalOptions
Properties
cancelText?
optionalcancelText?:string|null
Text for the cancel button
children?
optionalchildren?:ReactNode
The contents of the modal
className?
optionalclassName?:string
Classes to apply to the modal
confirmText?
optionalconfirmText?:string
Text for the confirmation/submit button
danger?
optionaldanger?:boolean
Whether the main button should be red or not
header?
optionalheader?:string
Text to show at the top of the modal
key?
optionalkey?:string|number
A unique key for the modal
size?
optionalsize?:""|"bd-modal-small"|"bd-modal-medium"|"bd-modal-large"
The size of the modal
transitionState?
optionaltransitionState?:number
Methods
onCancel()?
optionalonCancel():void
A callback to run when clicking the cancel button
Returns
void
onClose()?
optionalonClose():void
A callback to run when exiting the modal
Returns
void
onCloseCallback()?
optionalonCloseCallback():void
Called immediately on render
Returns
void
onConfirm()?
optionalonConfirm():void
A callback to run when clicking the submit button
Returns
void