请任何人告诉我如何在ngx-chips中的Tab和Spacebar事件上动态添加标签。
使用spacerKeyCodes(number [])或spacerKeys(string [])
<div class="force-to-the-bottom">
<tag-input [ngModel]="['hardocoded-item']" [separatorKeyCodes]="[32,9]">
<tag-input-dropdown
[autocompleteItems]="items"
[showDropdownIfEmpty]="true"
[dynamicUpdate]="false">
</tag-input-dropdown>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句