diff --git a/docs/index.html b/docs/index.html index c120ac62..5b172c83 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1560,9 +1560,52 @@ $("table").trigger("destroy", [false]; + + initialized + This event fires when tablesorter has completed initialization. +
+
$(function(){
+
+  // bind to initialized event BEFORE initializing tablesorter
+  $("table")
+    .bind("tablesorter-initialized",function(e, table) {
+      // do something after tablesorter has initialized
+    });
+
+  // initialize the tablesorter plugin
+  $("table").tablesorter({
+    // this is equivalent to the above bind method
+    initialized : function(table){
+      // do something after tablesorter has initialized
+    }
+  });
+
+});
+ + + + + + sortBegin + This event fires immediately before tablesorter begins resorting the table. +
+
$(function(){
+
+  // initialize the tablesorter plugin
+  $("table").tablesorter();
+
+  // bind to sort events
+  $("table").bind("sortBegin",function(e, table) {
+    // do something crazy!
+  });
+});
+ + + + sortStart - This event fires when tablesorter is about to start resorting the table. + This event fires immediately after the tablesorter header has been clicked, initializing a resort.
$(function(){
 
@@ -1571,10 +1614,10 @@ $("table").trigger("destroy", [false];
// bind to sort events $("table") - .bind("sortStart",function() { + .bind("sortStart",function(e, table) { $("#overlay").show(); }) - .bind("sortEnd",function() { + .bind("sortEnd",function(e, table) { $("#overlay").hide(); }); }); @@ -1593,10 +1636,10 @@ $("table").trigger("destroy", [false]; // bind to sort events $("table") - .bind("sortStart",function() { + .bind("sortStart",function(e, table) { $("#overlay").show(); }) - .bind("sortEnd",function() { + .bind("sortEnd",function(e, table) { $("#overlay").hide(); }); });