簡體   English   中英

Kendo UI的emptyItemClass可按角度排序

[英]emptyItemClass for Kendo UI Sortable for Angular

我可能缺少一些基本知識,但似乎無法將emptyItemClass應用於Angular 2的kendo -UI可排序組件。

我也嘗試使用emptyItemStyle,並獲得相同的結果。

<kendo-sortable [data]="viewColumns" itemClass="itemClass" emptyItemClass="emptyItem" activeItemClass="activeItemClass"
[emptyText]="'No columns selected'" (dragEnd)="doneDragging($event)">

在上面的代碼中,snipit itemClass和activeItemClass有效,但emptyItemClass無效。

這是我的問題的StackBlitz

您需要刪除示例中的括號,並使用ViewEncapsulation

工作StackBlitz

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM