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];
+$(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 + } + }); + +});
$(function(){ + + // initialize the tablesorter plugin + $("table").tablesorter(); + + // bind to sort events + $("table").bind("sortBegin",function(e, table) { + // do something crazy! + }); +});
$(function(){ @@ -1571,10 +1614,10 @@ $("table").trigger("destroy", [false];