mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
document corrections
This commit is contained in:
parent
75eea0cac6
commit
8de692cf4d
@ -31,9 +31,10 @@
|
||||
// let the plugin know that we made a update
|
||||
$("table").trigger("update");
|
||||
|
||||
// set sorting column and direction, this will sort on the first and third column
|
||||
var sorting = [[2,1],[0,0]];
|
||||
$("table").trigger("sorton", [sorting]);
|
||||
// triggering the "update" function will resort the table using the current sort; since version 2.0.14
|
||||
// use the following code to change the 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]);
|
||||
});
|
||||
|
||||
return false;
|
||||
@ -111,7 +112,7 @@
|
||||
<a href="#" id="ajax-append">Append new table data</a></div>
|
||||
|
||||
<p class="tip">
|
||||
<em>NOTE!</em> With the latest version of jQuery, this demo will only work when the ajax page is hosted online; This page is using jQuery v1.4.4 so it will work locally.
|
||||
<em>NOTE!</em> With the latest version of jQuery, this demo will only work when the ajax page is hosted online; This page is using jQuery v1.4.4 so it will work locally (Firefox).
|
||||
</p>
|
||||
|
||||
<h1>Javascript</h1>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<script id="js">$(function() {
|
||||
// call the tablesorter plugin
|
||||
$("table").tablesorter({
|
||||
// set forced sort on the fourth column and in decending order.
|
||||
// add sort on the first column and in ascending order AFTER the selected column
|
||||
sortAppend: [[0,0]]
|
||||
});
|
||||
});</script>
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
// call the tablesorter plugin
|
||||
$("table").tablesorter({
|
||||
// set forced sort on the fourth column and in decending order.
|
||||
// sort on the first column and in ascending order PRIOR TO the sort on the selected column
|
||||
sortForce: [[0,0]]
|
||||
});
|
||||
|
||||
@ -42,7 +42,12 @@
|
||||
<div id="main">
|
||||
|
||||
<p class="tip">
|
||||
<em>NOTE!</em> Click to sort any column header to see the forcing of the first column sort.
|
||||
<em>NOTE!</em>
|
||||
<ul>
|
||||
<li>Click to sort any column header to see the forcing of the first column sort.</li>
|
||||
<li>This option is part of the original plugin</li>
|
||||
</ul>
|
||||
|
||||
</p>
|
||||
|
||||
<h1>Demo</h1>
|
||||
|
Loading…
Reference in New Issue
Block a user