Skip to content
Browse files

updated methods table examples

  • Loading branch information...
1 parent 59919d6 commit 42529b5d4b1168da5d6674f307bff40f59d21970 @Mottie committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/index.html
View
6 docs/index.html
@@ -807,6 +807,9 @@
// let the plugin know that we made a update
$("table").trigger("update");
+// As of version 2.0.14, the table will automatically resort (using the current sort selection)
+// after the update, so include the following if you want to specify a different sort
+
// set sorting column and direction, this will sort on the first and third column
var sorting = [[2,1],[0,0]];
$("table").trigger("sorton", [sorting]);</pre></div>
@@ -845,6 +848,9 @@
// update the table, so the tablesorter plugin knows its value
$("table").trigger("updateCell",[this]);
+ // As of version 2.0.14, the table will automatically resort (using the current sort selection)
+ // after the update, so include the following if you want to specify a different sort
+
// set sorting column and direction, this will sort on the first and third column
var sorting = [[3,1]];
$("table").trigger("sorton",[sorting]);

0 comments on commit 42529b5

Please sign in to comment.
Something went wrong with that request. Please try again.