I need to rebuild the whole page on navigation.
How can I clear all webix ui objects?
Now I call: lastTopView.destructor();
Is it correct?
And how to clear popup views?
I need to rebuild the whole page on navigation.
How can I clear all webix ui objects?
Now I call: lastTopView.destructor();
Is it correct?
And how to clear popup views?
lastTopView.destructor();
Yes, this is a correct way, it will destroy all inner elements automatically. Also, it will destroy all auto-popups ( such as popup elements of richselects and similar ). This command will not affect windows that you have created by using separate webix.ui command. You will need to call .destructor for each of such windows.