我很難嘗試渲染帶有角和劍道的樹視圖。這是我到目前爲止的代碼:如何使用Angular和Kendo UI渲染樹視圖
Website1.controller("FieldsController1", function ($scope) {
$scope.things = {
data: [
{
text: "Furniture", items: [
{ text: "Tables & Chairs" },
{ text: "Sofas" },
{ text: "Occasional Furniture" }
]
},
{
text: "Decor", items: [
{ text: "Bed Linen" },
{ text: "Curtains & Blinds" },
{ text: "Carpets" }
]
}
]
};
上面是控制器。這是標記。
<ul kendo-tree-view k-hierarchical-data-source="things">
</ul>
此外,有沒有關於如何做到這一點的任何文件?
** Kendo已更新他們的文檔以包含Kendo Angular **請參閱官方Kendo文檔: http://demos.telerik.com/kendo-ui/treeview/angular – Jakobovski