toNode

webix.toNode(node)

webix.toNode helper.

Please look into the linked official documentation.

External references

Official documentation page.

Code

1
2
3
4
5
webix.toNode = function(node){
    if (typeof node == "string") return document.getElementById(node);
    return node;
};
//adds extra methods for the array