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

Updated 1.02 Main features (markdown)

koalyptus 2016-06-04 16:49:47 +10:00
parent 432ab7477d
commit 96b148a888

@ -46,60 +46,6 @@
<td></td>
<td><code>var tfConfig = { enter_key: false }</code></td>
</tr>
<tr>
<th>on_before_filter</th>
<td>function</td>
<td>Callback fired before filtering starts</td>
<td></td>
<td><code>var tfConfig = { on_before_filter: function(o){ alert('Calls
function before filtering starts!!!'); }</code></td>
</tr>
<tr>
<th>on_after_filter</th>
<td>function</td>
<td>Callback fired after filtering is completed</td>
<td></td>
<td><code>var tfConfig = { on_after_filter: function(o){ alert('Calls
function after filtering process!!!'); }</code></td>
</tr>
<tr>
<th>on_filters_loaded</th>
<td>function</td>
<td>Callback fired after filters instantiation</td>
<td></td>
<td><code>var tfConfig = { on_filters_loaded: function(o){ alert('Calls
function after filters generation!!!'); }</code></td>
</tr>
<tr>
<th>on_before_operation</th>
<td>function</td>
<td>Callback fired before column operations are performed (default
* null)</td>
<td></td>
<td><code>var tfConfig = { on_before_operation: function(o){ alert('Calls
function before column operations are performed!!!'); }</code></td>
</tr>
<tr>
<th>on_after_operation</th>
<td>function</td>
<td>Callback fired after column operations are performed (default
* null)</td>
<td></td>
<td><code>var tfConfig = { on_after_operation: function(o){ alert('Calls
function after column operations are performed!!!'); }</code></td>
</tr>
<tr>
<th>on_row_validated</th>
<td>function</td>
<td>Callback fired after a row is validated (default - null)</td>
<td><p>note that 2 parameters are sent to the callback:</p>
<ul>
<li>o is the current TableFilter instance</li>
<li>k is the current row index</li>
</ul></td>
<td><code>var tfConfig = { on_row_validated: function(o, k){ alert('Calls
function after a row is validated!!! Validated row nb = '+k ); }</code></td>
</tr>
<tr>
<th>custom_cell_data_cols</th>
<td>array</td>
@ -287,6 +233,57 @@
<td></td>
<td><code>var tfConfig = { mark_active_columns: true }</code></td>
</tr>
</tbody>
</table>
# Callbacks
<table>
<thead>
<tr>
<th>Property</th>
<th>Type</th>
<th>Description</th>
<th>Remarks</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<th>on_before_filter</th>
<td>function</td>
<td>Callback fired before filtering starts</td>
<td></td>
<td><code>var tfConfig = { on_before_filter: function(o){ alert('Calls
function before filtering starts!!!'); }</code></td>
</tr>
<tr>
<th>on_after_filter</th>
<td>function</td>
<td>Callback fired after filtering is completed</td>
<td></td>
<td><code>var tfConfig = { on_after_filter: function(o){ alert('Calls
function after filtering process!!!'); }</code></td>
</tr>
<tr>
<th>on_filters_loaded</th>
<td>function</td>
<td>Callback fired just after filters instantiation</td>
<td></td>
<td><code>var tfConfig = { on_filters_loaded: function(o){ alert('Calls
function after filters generation!!!'); }</code></td>
</tr>
<tr>
<th>on_row_validated</th>
<td>function</td>
<td>Callback fired after a row is validated (default - null)</td>
<td><p>note that 2 parameters are sent to the callback:</p>
<ul>
<li>o is the current TableFilter instance</li>
<li>k is the current row index</li>
</ul></td>
<td><code>var tfConfig = { on_row_validated: function(o, k){ alert('Calls
function after a row is validated!!! Validated row nb = '+k ); }</code></td>
</tr>
<tr>
<th>on_before_active_column</th>
<td>function</td>
@ -314,6 +311,4 @@
alert(colIndex); } }</code></td>
</tr>
</tbody>
</table>
# Callbacks
</table>