angular2-multiselect-dropdown
angular2-multiselect-dropdown copied to clipboard
angular2multislect tooltip
How we can use the tooltip in angular2multiselect dropdown?
Hi,
I guess you are trying to use a tooltip in the options of the select. Here there is a code that works perfectly:
<angular2-multiselect [data]="usersSelectList" [(ngModel)]="selectedUsers" [settings]="dropdownSettings" (onDeSelect)="onDropDownUsersClose($event)" (onDeSelectAll)="onDropDownUsersClose($event)" (onClose)="onDropDownUsersClose($event)"> <c-item> <ng-template let-item="item"> <label ngbTooltip="{{item?.fullName}}" container="body">{{item?.itemName}}</label> </ng-template> </c-item> </angular2-multiselect>
As you can see you have to customize the options part with the label <c-item>.
I hope anyone find this helpful.