Sorting & pagination
Sorting
| UI | Behavior |
|---|---|
DataTableColumnHeader | Asc / desc / clear / hide |
DataTableSortList | Multi-sort with drag reorder |
URL key: sort as JSON [{ id, desc }].
Server serialization uses sorting for the Go API.
Server mode sets manualSorting: true.
Pagination
DataTablePagination provides:
- Rows-per-page select (includes large presets and all-rows)
- First / prev / next / last
- Optional total (
showTotalRows) - Selection summary when rows are selected
URL: page (1-based), perPage (-1 = all).
API: pagination[page], pagination[perPage].
Server mode uses manualPagination and pageCount from the API.