autoload
Optional. Defines that the structure of a tree is being built while opening items
autoload?: string;
Example
const tree = new dhx.Tree("tree_container", {autoload: "/backend/autoload"});
tree.data.load("/backend/autoload?id=tree");
Related sample: Tree. Autoload
info
To control the process of auto-load, use the related beforeItemLoad and afterItemLoad events
Here is an example of sending an HTTP GET request to the server using the Express library:
app.get("/backend/autoload", (req, res) => {
const currentData = treeData.filter(i => i.parent === req.query.id);
return res.send(currentData);
})