||For dialogs with form fields and submit buttons|
||To confirm deleting items|
||For dialogs with a custom text message|
Dialogs are defined as a part of areas:
The Dialog submit has multiple ways to interact with the component.
Returning nothing or false is interpreted as a 404. It suggests that the model could not be found.
Returning true is interpreted as a success and will automatically close the dialog.
return [ ... ]
By returning an array, you gain more control of what happens when the dialog closes. You can pass data to the event, dispatch Vuex events and more.
throw new Exception
Any exception is interpreted as an error and will show the error message box in the dialog containing the exception message
You can redirect the Panel to a different location after submitting the dialog by calling: