Does tablesorter have an onsort event?

I just downloaded tablesorter and started it.

I need a code to run every time the user sorts the table, and I can not find anything in the documentation: - (

So if anyone knows that would be great, thanks!

Is there an event that fires every time I sort a column? I need to be an event AFTER sorting

+6
source share
1 answer

You can bind 'sortEnd' to tablesorter, see documentation:

http://tablesorter.com/docs/example-triggers.html

from the tablesorter documentation:

$(document).ready(function() { // call the tablesorter plugin, the magic happens in the markup $("table").tablesorter(); //assign the sortStart event $("table").bind("sortStart",function() { //do your magic here }).bind("sortEnd",function() { //when done finishing do other magic things }); }); 
+16
source

Source: https://habr.com/ru/post/894905/


All Articles