data

specifies an array of data objects to set into Sidebar

array data;

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

Related samples

See also
  • Articles
  • Back to top