As an example, I have a layout as below in my config methon in webix-jet:
{
rows: [{
view: "segmented",
options: [
{ id: "subView1", value: "subView1" },
{ id: "subView2", value: "subView2" },
{ id: "subView3", value: "subView3" }
],
on: {
onChange: function(id){
// here i want to replace my existing subView
}
}
},
{
$subview: MySubView,
name: "MySubView"
}
]
}
I want to replace my subview with different subview onChange method of ‘segmented’ view.
When my page is rendered 'MySubView" is being created. But when i want to change to another subView (“DifferentSubView”) , it is not being created.