I'm using a dialog widget. By default the dialog closes on clicking on any defined action buttons. I would like to prevent that and close the dialog programmatically. How can I set the defined action buttons to not close after clicking on them?
2 Answers, 1 is accepted
answered on 22 May 2018, 06:53 AM
The buttons can be prevented from closing the Dialog if you return false in their action functions. As for closing the Dialog programmatically, this can be done by calling its close API method. The following dojo example demonstrates both.