docs for custom storage

This commit is contained in:
James Reynolds 2014-01-16 13:12:54 -05:00
parent 9740577ba5
commit a332cadba6
2 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,9 @@
// Save pager page & size if the storage script is loaded (requires $.tablesorter.storage in jquery.tablesorter.widgets.js) // Save pager page & size if the storage script is loaded (requires $.tablesorter.storage in jquery.tablesorter.widgets.js)
savePages : true, savePages : true,
//defines custom storage key
storageKey:'tablesorter-pager',
// if true, the table will remain the same height no matter how many records are displayed. The space is made up by an empty // if true, the table will remain the same height no matter how many records are displayed. The space is made up by an empty
// table row set to a height to compensate; default is false // table row set to a height to compensate; default is false

View File

@ -2971,6 +2971,14 @@ $.extend($.tablesorter.themes.jui, {
<td><a href="example-pager.html">Example</a></td> <td><a href="example-pager.html">Example</a></td>
</tr> </tr>
<tr id="custom-storage">
<td><span class="permalink">storageKey</span></td>
<td>String</td>
<td>tablesorter-pager</td>
<td>Saves tablesorter paging to custom key if defined. Useful if you have multiple tables defined.</td>
<td><a href="example-pager.html">Example</a></td>
</tr>
<tr id="pager-fixedheight"> <tr id="pager-fixedheight">
<td><a href="#" class="permalink">fixedHeight</a></td> <td><a href="#" class="permalink">fixedHeight</a></td>
<td>Boolean</td> <td>Boolean</td>