mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-09 01:12:38 +02:00
Updated 1.02 Main features (markdown)
parent
f17c1830cb
commit
6b42e21c0e
|
@ -311,4 +311,42 @@
|
|||
alert(colIndex); } }</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## Events
|
||||
<p>
|
||||
Assuming `TableFilter` is already instanciated:
|
||||
</p>
|
||||
<pre>
|
||||
var tf = new TableFilter('my-table-id');
|
||||
</pre>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Event</th>
|
||||
<th>Description</th>
|
||||
<th>Remarks</th>
|
||||
<th>Example</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>before-filter-init</th>
|
||||
<td>Event emitted just before a filter is generated during TableFilter initialization</td>
|
||||
<td>
|
||||
Subscribers receives the following parameter:
|
||||
<ul>
|
||||
<li>tf - current TableFilter instance</li>
|
||||
<li>colIndex - current column index</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<pre>
|
||||
tf.emitter.on(['before-filter-init'], function(tf, colIndex){
|
||||
console.log(tf, colIndex);
|
||||
});
|
||||
</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Reference in a new issue