1
我正在使用kendo UI菜单。 我已经喜欢显示选中的菜单项必须在父项中显示
$("#menu").kendoMenu({
dataSource: [
{ text: "parent",
items: [
{ text: "child1" },
{ text: "child2" },
{ text: "child3" },
{ text: "child4" }
]
}
],
select:function(e){
$(e.item).children(".k-link").text();
}
});
定义开始菜单中显示的文字为“父”。 我想要的是,在选择事件中,当我点击任何其他项目时,所选项目文本必须显示在顶层菜单中。告诉我如何更改kendo菜单中的文本