jxStackOverflow
jxStackOverflow

Reputation: 378

How to remove PrimeNG dropdown icon?

I am using PrimeNG dropdown and was trying to remove the dropdown toggle icon. I've tried using css, but still doesn't work, maybe I am doing it wrong. Please help.

Upvotes: 2

Views: 4235

Answers (2)

Pawel
Pawel

Reputation: 21

You can use primeng build-in property:

[dropdownIcon]="'none'"

Upvotes: 2

Antikhippe
Antikhippe

Reputation: 6685

Maybe your CSS is overwritten by PrimeNG itself. You have to load yours after it.

This should do the trick :

.ui-dropdown-trigger {
  display: none;
}

See styles.css file in that demo.

Upvotes: 1

Related Questions