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?
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?
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
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;
}