loadBranch

loads data to the specified branch, as direct children of the node with the ID provided

promise loadBranch(id id,function callback,string url);
id
idbranch ID callback
functioncallback function url
stringdata URL
promisethe result of a request for branch data

Example

$$("tree").loadBranch("branchId", null, "data.php");
 
$$("tree").loadBranch("branchId", null, "data.php").then(function(data){
    var json = data.json();
});

Related samples

Details

The method returns a promise that:

$$("tree").loadBranch("branchId", null, "data.php").then(function(data){
    var json = data.json();
});
$$("tree").loadBranch("branchId", null, "data.php").fail(function(){
    // your code here
});
 
// catch() is the Webix alias of fail()
$$("tree").loadBranch("branchId", null, "data.php").catch(function(){
    // your code here
});
See also
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix lightweight js framework and page of tree ui product.