I am looking for a way to perform some actions, when user closes the editor window, by clicking on the SAVE button. How do I know if the user has clicked the SAVE button, inside popupClose(e:PopupCloseEventArgs ) method? I specifically want to do this in the popup close method, as I want to access all the form data using
PopupCloseEventArgs. I know you can use onActionBegin method to know when a user clicked the SAVE or CANCEL button,
but it doesn't have any form data
e.g.
popupClose(e:PopupCloseEventArgs ){
let startElement: HTMLInputElement = e.element.querySelector('#StartTime') as HTMLInputElement;
let endElement: HTMLInputElement = e.element.querySelector('#EndTime') as HTMLInputElement;
//How can I find out if the user clicked SAVE or CANCEL?
}