How to move icon in primeng accordion from left to right?

Discussão em 'Angular' iniciado por user18974278, Janeiro 22, 2025.

  1. user18974278

    user18974278 Guest

    I want to use an accordion from PrimeNg and I want collapse icon to be on the right side, not left. I tried to manipulate the iconPos attribute, but I cannot make it working for me. Can someone advise me here?

    <p-accordion [multiple]="true" [iconPos]="endVal"> // endVal comes from ts and gets "end"
    <p-accordionTab header="Header 1">
    Content 1
    </p-accordionTab>
    <p-accordionTab header="Header 2">
    Content 2
    </p-accordionTab>
    <p-accordionTab header="Header 3">
    Content 3
    </p-accordionTab>
    </p-accordion>

    Continue reading...

Compartilhe esta Página