The ResultsPerPage controller allows the end user to choose how many results to display per page.
ResultsPerPage
Example: results-per-page.fn.tsx
Checks whether the number of results per page is equal to the specified number.
The number of results.
true if the number of results is equal to the passed value, and false otherwise.
true
false
Updates the number of results to request per page.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The state of the ResultsPerPage controller.
The
ResultsPerPage
controller allows the end user to choose how many results to display per page.Example: results-per-page.fn.tsx