Topic: Table Sort icon like Jquery
ISDev pro asked 6 years ago
Hi,
I can't get the same look like Jquery on table sort.
On Jquery the arrow change color on depend of sorting asc or desc but on Angular that not work
Thanks
Damian Gemza staff answered 6 years ago
Dear BEAUNE,
This is easy to achieve by using the below line of code. Please adjust it to your needs.
<mdb-icon icon="sort" [ngClass]="{'red-text': clicked, 'green-text': !clicked}" (click)="clicked = !clicked"></mdb-icon>
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: Terra
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No