mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Docs: fix version numbering
This commit is contained in:
parent
bf94978dd2
commit
115f506c41
@ -95,6 +95,14 @@
|
||||
<div id="main">
|
||||
<h1>Demo</h1>
|
||||
|
||||
<p class="tip">
|
||||
<em>NOTE!</em>
|
||||
<ul>
|
||||
<li>In <span class="version">v2.16.5</span>, added sorton values (a)scending, (d)escending, (n)ext, (s)ame & (o)pposite. Use the demo below help understand how to use these settings.</li>
|
||||
<li>In v2.9, a "sort" event can be triggered on the header cell to toggle the sort.</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<div id="demo">
|
||||
|
||||
<!--
|
||||
@ -112,7 +120,7 @@ Basic Asc/Desc sort
|
||||
<button data-sort="[[0,0]]">Asc</button> (<code>[[0,0]]</code>) <button data-sort='[[0,"a"],[1,"d"]]'>Asc/Desc</button> (<code>[[0,"a"],[1,"d"]]</code>)<br>
|
||||
<button data-sort="[[0,1]]">Desc</button> (<code>[[0,1]]</code>) <button data-sort='[[0,"d"],[1,"a"]]'>Desc/Asc</button> (<code>[[0,"d"],[1,"a"]]</code>)
|
||||
<pre class="prettyprint lang-js updating">$("table").trigger("sorton", [ [] ]);</pre>
|
||||
<small>* <code>"a"</code> & <code>"d"</code> values added <span class="version">v2.18.5</span>.</small>
|
||||
<small>* <code>"a"</code> & <code>"d"</code> values added <span class="version">v2.16.5</span>.</small>
|
||||
</div>
|
||||
<div class="right box">
|
||||
<table id="table1" class="tablesorter">
|
||||
@ -151,7 +159,7 @@ Toggle Sort (Next)
|
||||
<button data-sort='[[0,"n"]]'>Asc/Desc</button> (<code>[[0,"n"]]</code>)<br>
|
||||
<button data-sort='[[0,"n"],[1,"n"]]'>Asc/Desc</button> (<code>[[0,"n"],[1,"n"]]</code>; columns are independent)
|
||||
<pre class="prettyprint lang-js updating">$("table").trigger("sorton", [ [] ]);</pre>
|
||||
<small>* <code>"n"</code> value added <span class="version">v2.18.5</span>.</small>
|
||||
<small>* <code>"n"</code> value added <span class="version">v2.16.5</span>.</small>
|
||||
</div>
|
||||
<div class="right box">
|
||||
<table id="table2" class="tablesorter">
|
||||
@ -191,7 +199,7 @@ Sort Same/Opposite
|
||||
<button data-sort='[[0,"n"],[1,"o"],[2,"s"]]'>Next/opposite/same</button> (<code>[[0,"n"],[1,"o"],[2,"s"]]</code>)<br>
|
||||
<button data-sort='[[0,"n"],[1,"o"],[2,"s"],[3,"o"]]'>Next/opposite/same/opposite</button> (<code>[[0,"n"],[1,"o"],[2,"s"],[3,"o"]]</code>)
|
||||
<pre class="prettyprint lang-js updating">$("table").trigger("sorton", [ [] ]);</pre>
|
||||
<small>* <code>"s"</code> & <code>"o"</code> values added <span class="version">v2.18.5</span>.</small>
|
||||
<small>* <code>"s"</code> & <code>"o"</code> values added <span class="version">v2.16.5</span>.</small>
|
||||
</div>
|
||||
<div class="right box">
|
||||
<table id="table3" class="tablesorter">
|
||||
|
Loading…
Reference in New Issue
Block a user