Skip to main content

data

specifies an array of data objects to set into Sidebar

data?: any[] | TreeCollection<ISidebarElement>;

Example

var sidebar = dhx.Sidebar("sidebar_container", {    data: [        {            "id": "dashboard",            "value": "Dashboard",            "icon": "mdi mdi-view-dashboard"        },        {            "id": "statistics",            "value": "Statistics",            "icon": "mdi mdi-chart-line"        }    ]});