items.attrObject
Defines custom HTML attributes of the generated item element.
Example - configure custom item attributes
<div id="drawer">
<div>Content area content.</div>
</div>
<script>
$("#drawer").kendoDrawer({
mode: "push",
items: [
{
text: "Reports",
icon: "chart-bar",
attr: {
"data-section": "reports",
"title": "Open Reports"
}
},
{ text: "Users", icon: "user" }
]
});
</script>