DCK React Components
ModalDialog
Info about using async functions:
- If async function passed to ModalDialog handled correctly, the dialog must close automatically. You need to pass two properties - isAsyncOperationSuccess and isAsyncOperationFailed for check async operation state.
Also, you can pass function using onAsyncOperationSuccess property, which will be launched after async operation success.
- If async function failed then ModalDialog prevent closing and show warning message that specified in asyncOperationFailedMessage property.
- To handle closing event, you can pass function using onClose property. This function will be executed when ModalDialog is closed.