data
Optional. Specifies an array of data objects to set into Toolbar
data?: object[];
Example
const toolbar = new dhx.Toolbar("toolbar_container", {
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
}
]
});