I can't seem to find any examples of adding a menu item to a splitbutton in a toolbar.
Here is the code I have for the splitbutton:
$("#toolbar").kendoToolBar({
items: [
{
type: "splitButton",
text: "Select",
id: "selectButton",
click: selectButtonClickHandler,
menuButtons: [
{ text: "foo1" },
{ text: "foo2" }
]
}
]
});
I'm trying to do something like $("#selectButton").add(new menuButton("foo3"));
Is there a way to do this? How have I missed it in the documentation?