我试图将剑道多选限制为两个值,如果还有更多值,则将平铺按钮显示为“5 more”。
下面是我的代码:
<div class="input-group">
<kendo-multiselect [(ngModel)]="selectedList" (open)="onOpen($event)"</kendo-multiselect>
<button class="search-btn"></button>
</div>
我绑定的列表将包含我选择的对象数组:
主要清单 ={id:1,"Name":"Wood","Description":"GAS"}
{id:2,"Name":"CHCH","Description":"CTRE"}
选定列表 ={id:2,"Name":"CHCH","Description":"CTRE"};