Skip to main content

autoload

defines that the structure of a tree is being built while opening items

autoload?: string;

Example

var tree = new dhx.Tree("tree_container", {autoload: "/backend/autoload"});tree.data.load("/backend/autoload?id=tree");

Related sample: Tree. Autoload

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);})