[英]Kendo-Angular : How to create kendo grid with template on columns?
[英]How to create dynamic cells for Kendo grid for Angular
在模板中定義列的位置,您可以為單元格使用自定義模板。 在此您可以編寫一些條件來決定要渲染的內容:
<kendo-grid-column field="example" title="Example" width="100">
<ng-template kendoGridCellTemplate let-dataItem>
<!-- You can use ngIf and/or ngSwitch here. -->
</ng-template>
</kendo-grid-column>
API: https : //www.telerik.com/kendo-angular-ui/components/grid/api/CellTemplateDirective/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.