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>
In this article
items.attr
Not finding the help you need?
Contact Support