问题描述
我正在使用 kendo-dropdowntree
来实现向下的树视图。我已经在 app.module.ts
中导入了组件,但错误似乎并没有消失。可能是什么问题?
app.module.ts
...
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
...
@NgModule({
imports: [
...
DropDownsModule
...
]
})
feature.component.html
<kendo-dropdowntree kendoDropDownTreeExpandable
[kendoDropDownTreeHierarchyBinding]="data"
[textField]="'text'"
[valueField]="'id'"
[childrenField]="'items'">
</kendo-dropdowntree>
feature.component.ts
public data: any[] = [
{
text: 'Furniture',id: 1,items: [
{ text: 'Tables & Chairs',id: 2 },{ text: 'Sofas',id: 3 },{ text: 'Occasional Furniture',id: 4 }
]
},{
text: 'Decor',id: 5,items: [
{ text: 'bed Linen',id: 6 },{ text: 'Carpets',id: 7 }
]
}
];
错误如下:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)