webix-hub / webix-jet

Webix Jet micro framework for Webix UI
67 stars 19 forks source link

prevent end user to loose some changes #45

Closed eviltik closed 2 years ago

eviltik commented 2 years ago

Hi again

I’m looking for a clean way to prevent user to loose some changes after a form became dirty.

Below an example: https://snippet.webix.com/d6707336

  1. go to the form page
  2. type something in the textarea or the text input, the label "dirty return … " will be updated
  3. when dirty return TRUE, AND if the user click “start” in the sidebar, i’d like to webix.confirm something, and depending of the result, allow page change or not.

I didn't find something in the documentation related to that, but perhaps i missed something.

Any hints ? ty

eviltik commented 2 years ago

lol I just saw Guard plugn. Closing.