Items
configurationSpecifies the menu buttons of the SplitButton.
items
Arrayitems.attributes
ObjectAdds custom attributes to the LI element of the menu button.
items.click
FunctionAdds unique click callback for the menu item.
items.data
FunctionAdds a custom data callback to be added to the context of menu item - useful to attach context dynamically.
items.enabled
BooleanToggles the enabled state of the item.
Default: true
items.hidden
BooleanIndicates wether the item should hidden.
Default: false
items.icon
StringSpecifies the icon of the item.
items.id
StringSpecifies the id of the item.
items.imageUrl
StringSpecifies the image of the item.
pseudo
<button id="splitButton">Command</button>
<script>
$("#splitButton").kendoSplitButton({
items: [
{ text: "Profile", imageUrl: "/images/profile.png" },
{ text: "Settings", imageUrl: "/images/settings.png" },
{ text: "Help", imageUrl: "/images/help.png" }
]
});
</script>
items.spriteCssClass
StringSpecifies the custom CSS class that is added to the sprite icon element of the item.
items.text
StringSpecifies the text of the item.
items.url
StringSpecifies the url of the item - it will render a element and will navigate the browser on click.