A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/tree/api/tree_data_config/ below:

JavaScript Tree - data Config

Optional. Sets a dataset for a tree

info

Please note that if you specify the id fields in the tree collection, their values should be unique. You can also omit the id fields in the tree collection. In this case they will be generated automatically.

const data = [
{
"value": "Books",
"id": "Books",
"opened": true,
"checkbox": true,
"items": [
{
"value": "Thrillers",
"id": "Thrillers",
"icon": {
"folder": "fas fa-book",
"openFolder": "fas fa-book-open",
"file": "fas fa-file"
}
}
]
}
];

const tree = new dhx.Tree("tree", {
data: dataset
});

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4