Move Sorting Arrows to front of Column Title
Move Sorting Arrows to front of Column Title
travisk42
Posts: 4Questions: 3Answers: 0
in DataTables 2
I want to move the sorting arrows to the front of the column title. I found the 2017 post below. Does DataTables 2 have a cleaner way to achieve this?
Old post: https://datatables.net/forums/discussion/comment/123317/#Comment_123317
Answers
It is just a
position: absolute
element, so all you need to do is set theleft
andright
properties as needed, and move the padding for the header cell:The selectors are a bit unwieldy, but a simple "Inspect" yields them.
https://live.datatables.net/vuqinoni/1/edit
Allan