Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Panel: option to not close dialog when clicking on backdrop

It would be nice, to be able to make a panel dialog “static”, so it can not be closed by clicking outside, or with escape key (force user to enter data, or click submit-/cancel-button).

Like a bootstrap modal with static backdrop: https://getbootstrap.com/docs/5.3/components/modal/#static-backdrop

For example by setting a dialog prop like this:

let dialog = {
  component: 'k-form-dialog',
  props: [
    {
      static: true /* dialog can only be closed by clicking submit-/cancel-button */
      fields: {}
    }
  ]
}

Or as a param inside the open method:

window.panel.dialog.open(dialog,true); /* true: dialog is static */
a year ago