I use the table-field plugin from ragi96 which only generates simple structured tables:
<tr>
<th>1st column</th>
<th>2nd column</th>
<th>3rd column</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
</tr>
However, an individual structure of the tables with <thead>
and <tbody>
is desired:
<thead>
<tr>
<th>1st column</th>
<th>2nd column</th>
<th>3rd column</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
</tr>
</tbody>
Is this possible with the plugin, or what other solution is there for creating custom tables? It’s important for me to be able to specify the number of columns and rows in the panel, as the plugin allows. My goal is to sort records (with JavaScript) by name or price column by column.