Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Before and after callback

Tags:

jquery

I use the great tablesorter plugin. I need to be able to execute something BEFORE and AFTER the execution of the sort click

How do you ADD a before and after callback method to a plugin that dont have it

like image 239
menardmam Avatar asked Dec 22 '22 07:12

menardmam


2 Answers

Couldn't you use the sortStart and sortEnd triggers?

like image 85
kgiannakakis Avatar answered Dec 24 '22 19:12

kgiannakakis


I just got an answer from the author :

Hi!

There is an option for zebra stripes.

Example:
$("#tablesorter-demo").tablesorter({widgets: ['zebra']});

Best regards
Christian
like image 25
menardmam Avatar answered Dec 24 '22 19:12

menardmam