1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-09 01:12:38 +02:00

Updated 1.04 Paging (markdown)

koalyptus 2016-07-09 22:38:14 +10:00
parent ef99b74ed3
commit 821a0e758b

@ -290,5 +290,164 @@ var tf = new TableFilter('my-table-id');
</pre>
</td>
</tr>
<tr>
<th>grouped-by-page</th>
<td>Event emitted just after a page is collected during paging process</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
<li><code>paging</code> - paging instance</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['grouped-by-page'], function(tf, paging){
console.log(tf, paging);
});
</pre>
</td>
</tr>
<tr>
<th>before-page-change</th>
<td>Event emitted just before a page is changed</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
<li><code>pageIndex</code> - page index</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['before-page-change'], function(tf, pageIndex){
console.log(tf, pageIndex);
});
</pre>
</td>
</tr>
<tr>
<th>after-page-change</th>
<td>Event emitted just after a page is changed</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
<li><code>pageIndex</code> - page index</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['after-page-change'], function(tf, pageIndex){
console.log(tf, pageIndex);
});
</pre>
</td>
</tr>
<tr>
<th>before-page-length-change</th>
<td>Event emitted just before the page length is changed</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['before-page-length-change'], function(tf){
console.log(tf);
});
</pre>
</td>
</tr>
<tr>
<th>after-page-length-change</th>
<td>Event emitted just after the page length is changed</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
<li><code>pageLength</code> - Length of the page</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['after-page-length-change'], function(tf, pageLength){
console.log(tf, pageLength);
});
</pre>
</td>
</tr>
<tr>
<th>before-reset-page</th>
<td>Event emitted just before a page is reset</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['before-reset-page'], function(tf){
console.log(tf);
});
</pre>
</td>
</tr>
<tr>
<th>after-reset-page</th>
<td>Event emitted just after a page is reset</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
<li><code>pageNumber</code> - page number</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['after-reset-page'], function(tf, pageNumber){
console.log(tf, pageNumber);
});
</pre>
</td>
</tr>
<tr>
<th>before-reset-page-length</th>
<td>Event emitted just before the page length is reset</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['before-reset-page-length'], function(tf){
console.log(tf);
});
</pre>
</td>
</tr>
<tr>
<th>after-reset-page-length</th>
<td>Event emitted just after the page length is reset</td>
<td>
Subscribers receive the following parameters:
<ul>
<li><code>tf</code> - current TableFilter instance</li>
<li><code>pageLength</code> - page length</li>
</ul>
</td>
<td>
<pre>
tf.emitter.on(['after-reset-page-length'], function(tf, pageLength){
console.log(tf, pageLength);
});
</pre>
</td>
</tr>
</tbody>
</table>