I’m trying to replicate the admin-app subview replacement when clicking on the accordion items.
Using webix.ui( view_object, $$(‘layout’), $$(‘subview’)) leads to id duplication (“non-unique view id” error).
It seems that the admin-app is using a custom function “app.create(subview)” which strategy is to recursively remove the children of the previous subview.
Do you plan to add a method in ui.layout to do this dirty job ? Something like .replaceView() ?
As for app.create(subview) it solves issue with reusing IDs ( when new view has ID the same as old one, or some child of old one ). We will backport it to the main library in next updated, as part of standard webix.ui and addView command.
I want to build a similar app.
Is it possible to use two objekts like
var mychart1= webix ui(){…},
var mychart2= webix ui(){…},
and change this two views by button click?