Hi
I need to display a tooltip for each item in the drop down list. How can I achieve that?
My code looks like below:-
<p-dropdown [options]="cities2" [(ngModel)]="selectedCity2" optionLabel="name"></p-dropdown>
in app.component.ts
this.cities2 = [
{name: 'New York', code: 'NY'},
{name: 'Rome', code: 'RM'},
{name: 'London', code: 'LDN'},
{name: 'Istanbul', code: 'IST'},
{name: 'Paris', code: 'PRS'}
];
How can I use ptooltip or any other solution to display tool tip for each city?
Thanks
Shefeeque.
Tooltip in Dropdown
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests