List.js Pagination
Show a page size and render numbered pagination with prev/next buttons.
| Name | Age | |
|---|---|---|
| Anna | [email protected] | 18 |
| Homer | [email protected] | 35 |
| Oscar | [email protected] | 52 |
| Emily | [email protected] | 30 |
| Jara | [email protected] | 25 |
| Clark | [email protected] | 39 |
| Jennifer | [email protected] | 52 |
| Tony | [email protected] | 30 |
| Tom | [email protected] | 25 |
| Michael | [email protected] | 39 |
| Marie | [email protected] | 30 |
| Cohen | [email protected] | 25 |
Important JavaScript
const peopleList = new List("people-list", {
valueNames: ["name", "email", "age"],
page: 5,
pagination: true
});