I want to add my sortDown and sortUp icones dynamically in tablesorter. The problem is, I want to have an image background like green theme in my headers, but the images in ‘green’ theme don’t work for me as when the height of the header is more than one row, the position of the little sorter icons change. the only solution that I come up with is to remove the sorter icon from the background image and add it dynamically in the sortEnd event. But the problem is I don’t know how I can find the list of sorted columns in the even and how can I recognize the sort order of each column.
I want to add my sortDown and sortUp icones dynamically in tablesorter. The problem
Share
There is an undocumented option named
onRenderHeaderhere is the original demoBut, I’ve forked a copy of and made a more specific demo here. Also, I’ve added a jQuery UI theme widget where you can choose your own icons by finding and changing the icon names in the widget.