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 */