Hi @Denizhan18,
The multiview is a container (layout) with switchable cells
. One cell can be visible at a time. Each cell can be a layout of any complexity (or just a single view).
First, you need to create cells which define the content in multiview (at this step, please note that id
of cells should be the same as id of options in the menu - this will be used in the example).
Cells can be switched with one of the following methods:
// set visible cell through multiview API
$$(multiviewId).setValue(cellId);
//direct command to a cell (similar to basic show/hide.
//Multiview will switch to show the desired view)
$$(cellId).show()
So the main task is to select an option in menu => show a cell with a corresponding ID.
To do so, please add the onAfterSelectevent handler to the menu:
onAfterSelect: function (id) {
//assuming the multiview cell has the same id as the selected option
var view = $$(id);
if (view)
view.show();
}
Please check the snippet:
https://snippet.webix.com/j97e1tiv