Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <table id="full_balance_table" class="table table-bordered table-striped">
  2. <thead>
  3. <tr>
  4. <th>Date</th>
  5. <th>Category</th>
  6. <th>Title</th>
  7. <th>Type</th>
  8. <th>Value</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <if th:if="${not #lists.isEmpty(fullBalanceRecordList)}">
  13. <tr th:each="overallBalanceRecord : ${fullBalanceRecordList}">
  14. <td type="text" th:text="${overallBalanceRecord.date != null} ? ${#calendars.format(overallBalanceRecord.date, 'dd.MM.yyyy')} : null"></td>
  15. <td th:text="${overallBalanceRecord.category}"></td>
  16. <td th:text="${overallBalanceRecord.title}"></td>
  17. <td th:text="${overallBalanceRecord.sign}"></td>
  18. <td type="number" th:text="${overallBalanceRecord.value}"></td>
  19. </tr>
  20. </tbody>
  21. </table>
  22.  
  23. var table = $('#example').DataTable( {
  24. ajax: "/refresh"
  25. } );
  26.  
  27. setInterval( function () {
  28. table.ajax.reload();
  29. }, 30000 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement