Selected columns
Closed this issue · 1 comments
limonides commented
Hi
How to use only in selected columns ?
chestercharles commented
You can select the columns in which you wish to render search filters using the columnSelector
property of the configuration object.
Here is an example:
HTML
<table id="table">
<thead>
<tr>
<th class="apply-filter">Item 1</th>
<th>Item 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Item 1</td>
<td>Item 2</td>
</tr>
</tbody>
</table>
JS
$('#table').excelTableFilter({
// will only create filters for columns with a <th> class of "apply-filter"
columnSelector: '.apply-filter',
});