'Filtering results in Thymeleaf table SpringBoot app
Hello I have built a SpringBoot app with Thymeleaf on the front-end and I have a table that I must filter the results. Here is the code:
<table class="table">
<thead>
<tr>
<th scope="col">CIF BENEFICIAR</th>
<th scope="col">ID BENEFICIAR STRAIN</th>
</tr>
</thead>
<tbody>
<tr th:each="map : ${map_list}" >
<td th:text ="${map.get('cif_beneficiar') == null} ? ' ' : ${map.get('cif_beneficiar')}" ></td>
<td th:text ="${map.get('id_benef_strain') == null} ? ' ' : ${map.get('id_benef_strain')}" ></td>
</tr>
</tbody>
</table>
I searched on google and I did not found how to create a filter for the columns. Can someone please give me an example ? Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
