Non unique view id

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?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!