I have a button that toggles text, but I want to toggle icons instead. Here's the code I currently have:
<b-button size="sm" @click="row.toggleDetails" class="mr-2">
{{ row.detailsShowing ? '-' : '+'}} Details
</b-button>
My goal is to use icons to trigger the toggle. Click on the chevron down to expand and the chevron up to collapse:
<i class="mdi mdi-chevron-down"></i>
<i class="mdi mdi-chevron-up"></i>
I'm struggling to make this change without breaking anything. Any suggestions would be greatly appreciated. Thank you!