2

Is there any way to place the PrimeNG drop-down icon on left side of select?

I tried

<div class="ui-rtl" dir="rtl">
    <p-dropdown></p-dropdown>
</div>

but didn't work correctly.

Is there any other solution?

Vala Khosravi
  • 1,975
  • 3
  • 14
  • 41

2 Answers2

1

Have you tried to override PrimeNG CSS ?

Try this :

.ui-dropdown .ui-dropdown-label {
  padding-left: 2em;
}

.ui-dropdown .ui-dropdown-trigger {
  left: 0;
}

See Plunker

Antikhippe
  • 5,395
  • 2
  • 22
  • 38
0

You must override PrimeNG. don't use direction for .body{}

.ui-dropdown label.ui-dropdown-label
{
text-align:right;
}


body .ui-dropdown-panel .ui-dropdown-items .ui-dropdown-item, body .ui-dropdown-panel .ui-dropdown-items .ui-dropdown-item-group
{
text-align:right;
}