Redraw/remove dashboard

We have an application with a webix dashboard and a scenario where we where we need to redraw depending on the users navigation. I cannot just do webix.ui({…new dashboard…}) because there are elements with the same name and I get an error saying “None unique view id…”.

Is there a way to remove a top level view?

You can do that with webix.ui({ …new dashboard… }, $$(layoutId), $$(replacedViewId)) Code Snippet . As far as I understand, you would do something like:

webix.ui(
    [  /* here go new panels */ ],
    $$("dashboard1")
);

https://snippet.webix.com/gacgit1g