thead filter set input type
ken-colvin opened this issue · comments
- How do I set the input type for the THEAD filter html INPUT types?
- The goal is to have a generic method update the THEAD input types and not write custom code for each column
- For example, is there a way to have something like
<thead>
<th data-type='date' title='Enter Date'></th>
<th data-type='number' data-step='1' title='Enter Integer'></th>
<th data-type='number' data-step='.01' title='Enter Decimal'></th>
</thead>
Resulting in the THEAD filter input types:
<input type='date'>
Integer
<input type='number' step=1>
Decimal
<input type='number' step=.01>
- I see you can have "complex" inputs for each column.
- I do not want to add custom code for every column like these demos
- https://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-1.html
- https://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-2.html