Make p-dropdown options right aligned in primeng

Published

I have following html code which use PrimeNG p-Dropdown component. I want to align the options to be right aligned.(Left aligned by default). Is there a way to achieve this. I tried updating the style class but no luck with that either.

<div class="form-group">
    <p-dropdown inputId="state" formControlName="{{demos}}"
         [options]="demoOptions" [styleClass]="'prm-dropdown prm-filter-dropdown'" 
         [dropdownIcon]="'bx bxs-chevron-down'" placeholder="{{demoOptions}}" 
         (onChange)="onValueChange(demoOptionId)">
    </p-dropdown>
 </div>

Source: Angular Questions

Published
Categorized as angular, primefaces, primeng Tagged , ,

Answers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq