Closed yuchant closed 8 years ago
you can provide data-value
attribute to the <td>
elements and that will be used instead of auto generating it from the content
so your HTML will look like this:
<table class="sortable table">
<thead>
<tr>
<th>foo</th>
</tr>
</thead>
<tbody>
<tr>
<td data-value="1">1%</td>
</tr>
<tr>
<td data-value="4">4%</td>
</tr>
<tr>
<td data-value="10">10%</td>
</tr>
<tr>
<td data-value="15">15%</td>
</tr>
<tr>
<td data-value="9">9%</td>
</tr>
<tr>
<td data-value="1">1%</td>
</tr>
</tbody>
</table>
Thank you that is what I've been doing. Wished it could parse!
I will leave this open, it could be nice feature to provide regex for creating data-value
attributes from text in cells
I'm curious if there's a solution to this problem?
Can reproduce easily via latest download as of today.
Currently am using data-value and using integers.