Using ngx-bootstrap, how can I add an icon to accordion-group heading? For example:
<accordion-group heading="<i class='fa fa-users'></i> Users">
This content is straight in the template.
</accordion-group>
You can add the icon custom css class to the Accordion header using 'iconCss' property and also add css styles to the defined class. The accordion icon element is rendered before the header text in the DOM element.
I think it can be done like this..
<accordion-group #group>
<span accordion-heading>
<i class='fa fa-users'></i> Users
</span>
This content is straight in the template.
</accordion-group>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With