Topic: Showing column sort direction
DataTables (without MDB) can show you the direction that a column is sorted (see: https://datatables.net/examples/styling/order-column.html). The up and down icon arrows change to correctly reflect the column sort order.
With MDB, all I see is a font-awesome icon of both up and down arrows that never changes, regardless of the direction the column is sorted in.
How can I get my table to show the sort direction in the column header?
Michal Szymanski staff pro premium priority answered 6 years ago
Unfortunately, you cannot do it right now, because we didn't integrate this option.
Perhaps we'll add it in the future, but I cannot give you an exact date.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Clendening pro commented 6 years ago
Adding some css: https://stackoverflow.com/questions/8286508/jquery-datatable-doesnt-show-sort-icon Importing the png assets: https://github.com/DataTables/DataTables/tree/master/media/imagesMarta Szymanska staff pro premium commented 6 years ago
Thank you for the solution.