Switching between views

Hi,

I am new to Javascript web programming, so please excuse the terminology. I want to be able to switch between multiple views programmatically. In the gui world we would call this a stacked widget. Another way to do this in a gui, is to use a tab widget with the tabs hidden and select the desired page programmatically. I have seen the ability to add and remove views. What is the recommended way to do this in Webix? My use case would be the main content area of a three section resizer.

Thanks
-G

Hi,

For the use case you describe Webix offers a multiview widget that you can combine with a tabbar control to switch between the views. Only one view is visible at a time while the others are hidden.

Check the sample, please: http://docs.webix.com/samples/02_toolbar/02_tabbar.html

You may also need the Multiview documentation where different ways of view switching are described.

Adding an removing views dynamically is not the best way for your situation as every time the view is fully destructed and recreated.