Hi, I have the following protoUI:
webix.protoUI({
name: "vistaTipoA",
defaults: {
rows: [
{
view: "layout",
id: "uno",
height: 250,
rows: [
]
},
{
view: "layout",
id: "dos",
rows: [
]
}
]
},
menu: function (elements) {
this.getChildViews()[0].addView(elements);
}
}, webix.ui.layout, webix.IdSpace)
Then I try to create 2 views from “vistaTipoA”:
var aux = webix.ui({
id: winViewId,
view: "vistaTipoA",
});
aux.menu(...);
var aux1 = webix.ui({
id: winViewId,
view: "vistaTipoA",
});
aux1.menu(...);
I have the error: Non unique view id: uno
How I can fix?