mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Pager: Change default ajaxProcessing function. See #1580
This commit is contained in:
parent
f0ad41091a
commit
5df2bcaaa7
@ -52,7 +52,7 @@
|
|||||||
// ],
|
// ],
|
||||||
// [ "header1", "header2", ... "headerN" ] // optional
|
// [ "header1", "header2", ... "headerN" ] // optional
|
||||||
// ]
|
// ]
|
||||||
ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; },
|
ajaxProcessing: function(data) { return data; },
|
||||||
|
|
||||||
// output default: '{page}/{totalPages}'
|
// output default: '{page}/{totalPages}'
|
||||||
// possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},
|
// possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},
|
||||||
|
@ -4463,9 +4463,9 @@ $('table').trigger('search', false);</pre></div>
|
|||||||
<tr id="pager-ajaxprocessing">
|
<tr id="pager-ajaxprocessing">
|
||||||
<td><a href="#" class="permalink">ajaxProcessing</a></td>
|
<td><a href="#" class="permalink">ajaxProcessing</a></td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td>null</td>
|
<td>function (data) { return data; }</td>
|
||||||
<td>
|
<td>
|
||||||
This function is required to return the ajax data obtained from your server into a useable format for tablesorter to apply to the table (v2.1, <span class="version updated">v2.17.3</span>).
|
This function is required to return the ajax data obtained from your server into a useable format for tablesorter to apply to the table (v2.1, <span class="version updated">v2.30.8</span>).
|
||||||
<div class="collapsible">
|
<div class="collapsible">
|
||||||
<br>
|
<br>
|
||||||
<span class="label label-info">Note</span> The pager widget equivalent option is within the <code>widgetOptions</code> and accessed via <code>widgetOptions.pager_ajaxProcessing</code><br>
|
<span class="label label-info">Note</span> The pager widget equivalent option is within the <code>widgetOptions</code> and accessed via <code>widgetOptions.pager_ajaxProcessing</code><br>
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
// ],
|
// ],
|
||||||
// [ "header1", "header2", ... "headerN" ] // optional
|
// [ "header1", "header2", ... "headerN" ] // optional
|
||||||
// ]
|
// ]
|
||||||
pager_ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; },
|
pager_ajaxProcessing: function( data ) { return data; },
|
||||||
|
|
||||||
// css class names of pager arrows
|
// css class names of pager arrows
|
||||||
pager_css: {
|
pager_css: {
|
||||||
|
Loading…
Reference in New Issue
Block a user