pagination all-sales

This commit is contained in:
2024-08-23 10:04:06 +02:00
parent 63585e31f6
commit c8b032236b
4 changed files with 62 additions and 11 deletions

View File

@ -18,10 +18,14 @@ All Sales
<tbody>
</tbody>
</table>
<nav>
<ul id="paginator" class="pagination">
</ul>
</nav>
{{ end }}
{{ define "js" }}
<script type="module">
import {showTable} from "/static/js/all-sales.js"
showTable({{.API}});
import {showTable, pageSize, currentPage} from "/static/js/all-sales.js"
showTable({{.API}}, pageSize, currentPage);
</script>
{{ end }}