List.js Pagination
Show a page size and render numbered pagination with prev/next buttons.
| Name | Age | |
|---|---|---|
| Anna | anna@example.com | 18 |
| Homer | homer@example.com | 35 |
| Oscar | oscar@example.com | 52 |
| Emily | emily@example.com | 30 |
| Jara | jara@example.com | 25 |
| Clark | clark@example.com | 39 |
| Jennifer | jennifer@example.com | 52 |
| Tony | tony@example.com | 30 |
| Tom | tom@example.com | 25 |
| Michael | michael@example.com | 39 |
| Marie | marie@example.com | 30 |
| Cohen | cohen@example.com | 25 |
Important JavaScript
const peopleList = new List("people-list", {
valueNames: ["name", "email", "age"],
page: 5,
pagination: true
});