So, I'm trying to make those responsive headers that, when clicked, organize the column and change the "little set" up or down. I already have my sorts working, but I still lack the "responsiveness" of the icons.
So my problem is:
I have the current icon: fa fa-fw fa-sort
=
I would like, when an 'X' header is clicked, the icon changes to: fa fa-fw fa-sort-down
=
HowdoIchangeiconsthroughclicks?Also,youcanclicktheheader:
<thid="teste" rowspan="2" style="text-align: center; vertical-align: middle">Cliente <i class="fa fa-fw fa-sort"></i></th>
And, when another one is clicked, does it return to the original icon?