【发布时间】:2017-06-13 02:48:45
【问题描述】:
我是带有 Spring Boot 和 thymeleaf 的蒲公英数据表。
这是我要在其中显示所有日志的表格的代码。
<table class="table table-bordered" id="expiredUsersTable" dt:table="true">
<thead>
<tr>
<th dt:sortInitDirection="desc">TIME</th>
<th dt:filterable="true" dt:filterType="select">Log Level</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<tr th:each="log : ${logs}">
<td th:text="${log?.getFormattedDate()}"></td>
<td th:text="${log?.level}"></td>
<td th:text="${log?.message}"></td>
</tr>
</tbody>
</table>
我想在此表的日期范围之间添加过滤器,但我无法使用蒲公英数据表实现此目的。有哪些方法可以做到这一点?
【问题讨论】:
标签: jquery spring-boot datatable thymeleaf dandelion