items.attributesObject
Adds custom attributes to the LI element of the menu button.
Example
<button id="dropdownbutton" type="button">Actions</button>
<script>
$("#dropdownbutton").kendoDropDownButton({
items: [
{
text: "Save",
attributes: {
"data-action": "save",
"data-priority": "high",
"title": "Save the current document"
}
},
{
text: "Export",
attributes: {
"data-action": "export",
"class": "export-item"
}
}
]
});
</script>
In this article