What is the suggested approach to cancel a window from being closed?
The scenario we would like to implement is the following:
- the user clicks on X to close the Window
- we initiate a callback to the page that lives inside the window to make sure the window can be closed in it's current state
- if the server page notifies that the Window cannot be closed, keep the window opened
Since there is only a closed event and no closing event, how can we implement this scenario?
Thank you
The scenario we would like to implement is the following:
- the user clicks on X to close the Window
- we initiate a callback to the page that lives inside the window to make sure the window can be closed in it's current state
- if the server page notifies that the Window cannot be closed, keep the window opened
Since there is only a closed event and no closing event, how can we implement this scenario?
Thank you