Tooltip in Dropdown

UI Components for Angular
Post Reply
Shefzee
Posts: 2
Joined: 16 Aug 2018, 13:58

16 Aug 2018, 14:08

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.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests