0.7.9 • Published 3 years ago

@bdt-component-library/pagination v0.7.9

Weekly downloads
48
License
MIT
Repository
github
Last release
3 years ago

Pagination Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of pagination according to style guide conventions.

API

proptyperequireddefaultexplanation
classNamestringnon/aAdds an optional classname to the main component container
rowsPerPageOptionsarray(object("name": string, "value": number))yesnoThe list of options for how many rows to display per page
rowsarray(object)yesnoData consisting of an array of objects to paginate
updateDisplayRowsfunction(array(object))yesnoThe callback function to fire when rows are updated for display on pagination action, which passes in the row data as an array of objects
totalRowsnumberyesnoThe total number of rows in the row data (we require this instead of deriving it from the rows prop because it allows server-side pagination which would obscure the total number from just those passed in at any given point)
serverSideNextfunction("page": number, "rowsPerPage": number, "update": function("newRows": array(object))) OR falsenofalseAllows server-side functionality by enabling actions during the page update lifecycle, and firing the component's internal update function based on whatever conditions are needed (like in the success of a promise resolution)
0.7.9

3 years ago

0.7.8

3 years ago

0.7.6

3 years ago

0.7.5

4 years ago

0.7.7

3 years ago

0.7.4

4 years ago

0.7.2

4 years ago

0.7.3

4 years ago

0.7.1

4 years ago

0.4.5

4 years ago

0.5.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago