Hello,
After our intern left, I took over his code.
I am wondering if it is possible to change the button icon after clicking it.
Example:
expand, use a 'chevron-down'
collapse
, use a 'chevron-up'
The code that I have:
{% load django_bootstrap_icons %}
...
<button class="btn btn-sm p-1
{% if lane.type == 'PRE' %}btn-outline-dark {%else %} btn-outline-light {% endif %}
small block-collapsebtn"
type="button"
id="CollapseBtn"
data-toggle="collapse"
data-target="#collapsable-{{block.uuid}}"
aria-expanded="false"
aria-controls="collapseExample"
onclick="change_btn(this)"
>{% bs_icon 'chevron-down' %}</button>
Could you help out?
Thank you.
Best Regards
Arno Schuurs