Skip to main content

data

specifies an array of data objects to set into Toolbar

data?: any[];

Example

const toolbar = new dhx.Toolbar("toolbar", {    css: "dhx_widget--bordered",    data: [         {            "id": "edit",            "value": "Edit"        },        {            "id": "search",            "type": "input",            "placeholder": "Search",            "icon": "mdi mdi-magnify"        },        {            "type": "spacer"        },        {            "type": "button",            "view": "link",            "color": "secondary",            "circle": true,            "id": "notifications",            "icon": "mdi mdi-bell",            "tooltip": "Notifications",            "count": 7        }    ])};