Pagination
A set of sequentially numbered links for navigating pages of data. It supports default page and page count, and can trigger queries or other actions on page change.
Pagination adjusts the number of pages shown to fit its width and automatically updates to reflect the currently selected page. Use Page Input for navigating to specific pages of data using an input field.
Properties
Available properties for Pagination with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The current value.
Whether user input, interaction, or selection is disabled.
Whether the component is visible.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
The maximum value to allow.
Whether the component remains visible in the editor if hidden
is true
.
The text to display in a tooltip on hover or focus.
Events
Events are triggered by user interactions with Pagination. Use event handling to trigger queries or other actions in response to events.
A user changes the current value.
Methods
Methods for interacting with Pagination. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Set the current value.
Clear the current value.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
Set the disabled
value to toggle whether the input field is disabled. Defaults to true
without a parameter.
Reset value
to the default value.