mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Docs: Specify pager's pageSet method requires a one-based index value
This commit is contained in:
parent
1d3a2c21a4
commit
d863c4aee4
@ -4604,8 +4604,10 @@ $('table').trigger( 'search', [['', '', '', '', 'orange']] ); // find orange in
|
||||
<td><a href="#" class="permalink">pageSet</a></td>
|
||||
<td>Trigger the pager to change the current page (v2.7.7).
|
||||
<div class="collapsible">
|
||||
<br>
|
||||
If no value is passed, the pager will reset to page 1; otherwise, pass a "one-based" index of the desired page
|
||||
<pre class="prettyprint lang-js">$(function(){
|
||||
$('table').trigger('pageSet', 3);
|
||||
$('table').trigger('pageSet', 3); // pass a one-based index
|
||||
});</pre></div>
|
||||
</td>
|
||||
<td></td>
|
||||
|
Loading…
Reference in New Issue
Block a user