views

webix.ui.views([see official doc])

webix.ui.views helper.

Please look into the linked official documentation.

References

helpers
isUndefined(), toNode(), ui().

Referenced by

helpers
ui().
components
DataCollection(), DataRecord(), DataValue().
mixins
Destruction().
views
baseview().

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ui.views = {};
webix.$$ = function(id){
    if (!id) return null;

    if (ui.views[id]) return ui.views[id];
    if (ui._delays[id]) return webix.ui(ui._delays[id]);

    var name = id;
    if (typeof id == "object"){
        if (id._settings)
            return id;
        name = (id.target||id.srcElement)||id;
    }
    return ui.views[webix.html.locate({ target:webix.toNode(name)},"view_id")];
};
if (webix.isUndefined(window.$$)) window.$$=webix.$$;