Issue
Does angular2-multiselect-dropdown support the customized background color based on the tags label.
Need the background color based on the tags label.
This is the npm of the package but there is no description about it https://www.npmjs.com/package/angular2-multiselect-dropdown
Suggestion is appreciated for this pulgin.
Solution
You can use there templating example something like
<angular2-multiselect [data]="itemList" [(ngModel)]="selectedItems" [settings]="settings" (onSelect)="onItemSelect($event)" (onDeSelect)="OnItemDeSelect($event)" (onSelectAll)="onSelectAll($event)" (onDeSelectAll)="onDeSelectAll($event)">
<c-badge>
<ng-template let-item="item">
<label style="margin: 0px;" [style.backgroundColor]="item.color">{{item.itemName}}</label>
</ng-template>
</c-badge>
</angular2-multiselect>
Answered By - jitender
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.