Page Input

An input field for navigating to a specific page of data. It supports default page and page count, custom prefix and suffix text, and can trigger queries or other actions on page change.

Page Input displays the total number of pages and automatically updates to reflect the currently selected page. Use Pagination for navigating pages of data using numbered links.

Properties

Available properties for Page Input with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.

NameTypeDescriptionvaluenumber

The current value.

disabledboolean

Whether user input, interaction, or selection is disabled.

hiddenboolean

Whether the component is visible.

horizontalAlign'left' | 'center' | 'right' | 'full'

The horizontal alignment of the contents.

maintainSpaceWhenHiddenboolean

Whether the component takes up space on the canvas if hidden is true.

marginstring

The amount of margin to render outside of the component.

maxnumber

The maximum value to allow.

showInEditorboolean

Whether the component remains visible in the editor if hidden is true.

textAfterstring

The text to display after the primary content.

textBeforestring

The text to display before the primary content.

tooltipTextstring

The text to display in a tooltip on hover or focus.

Events

Events are triggered by user interactions with Page Input. Use event handling to trigger queries or other actions in response to events.

NameDescriptionChange

A user changes the current value.

Methods

Methods for interacting with Page Input. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.

NameDescriptionscrollIntoView(options: any)

Scrolls the canvas or parent container so that the selected component appears in the visible area.

setHidden(hidden: boolean)

Set the hidden value to toggle whether the component is visible. Defaults to true without a parameter.

setDisabled(disabled: boolean)

Set the disabled value to toggle whether the input field is disabled. Defaults to true without a parameter.

resetValue()

Reset value to the default value.

setValue(value: number)

Set the current value.

clearValue()

Clear the current value.

Related components