angular2-multiselect-dropdown icon indicating copy to clipboard operation
angular2-multiselect-dropdown copied to clipboard

angular2multislect tooltip

Open spartan221098 opened this issue 3 years ago • 1 comments

How we can use the tooltip in angular2multiselect dropdown?

spartan221098 avatar Sep 29 '22 11:09 spartan221098

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.

Hugo221989 avatar Jun 28 '24 15:06 Hugo221989