Optional Pagination Guardrails
Toggle guardrails on/off. When enabled, page is capped at 25 and page size is clamped to 1-100.
Library setup
Set paginationGuard to true (defaults) or pass custom bounds.
const table = new DogTable("#app", {
pageSize: 10,
paginationGuard: { maxPage: 3, maxPageSize: 50 },
remote: {
url: "https://api.rahmaanms.my.id/api/employees",
mapResponse: (payload, state) => { /* ... */ }
},
columns: [
{ key: "id", label: "ID" },
{ key: "name", label: "Name" },
],
});
Table initializing...