I`m programming a complex web app with angular /typescript, and I want to use accordions for a few things. The accordions are set up with typescript/bootstrap like this:
<accordion>
<accordion-group heading="">
</accordion-group>
</accordion>
How would I add an up/down arrow to the accordion?
I tried using :after pseudo classes and the content: attribute with css for the rendered accordion classes, but that didnt work. I tried a lot of different classes to do that with, but it didnt work. Is there an easy way to do that?
this is the HTML:
...
<accordion>
<accordion-group heading="{{'Model.EntityName' | translate}}" [isOpen]="true">
...
</accordion>
...
this is the sass:
...
.panel-heading .accordion-toggle:after {
/* symbol for "opening" panels */
font-family: 'Glyphicons Halflings'; /* essential for enabling glyphicon */
content: "\e114";
float: right;
color: grey;
}
...