The Key Value component for Retool Apps
Display key-value information.
This is a legacy component that is no longer supported. Use the newer version of this component which has more features and functionality.
Settings
Key Value includes the following configurable options when building apps in the IDE.
DataEvent handlersShow on desktopShow on mobileMaintain space when hiddenMarginShow rowAlways show in edit modeStyles |
Properties
All properties for Key Value with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
global
Whether the object is globally scoped for use in all app pages.
Whether the component is visible.
id
The unique identifier.
isHiddenOnDesktop
Whether the component is visible in the desktop layout.
isHiddenOnMobile
Whether the component is visible in the mobile layout.
keyTitle
The title of the Key column.
maintainSpaceWhenHidden
Whether the component takes up space on the canvas if hidden
is true
.
pluginType
The plugin type.
rows
rowVisibility
A list of visible rows.
showInEditor
Whether to remain visible in the editor if hidden
is true
.
valueTitle
The title of the Value column.
Methods
JavaScript API methods for interacting with Key Value. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
scrollIntoView
Scrolls the canvas or parent container so that the selected component appears in the visible area.
keyValue.scrollIntoView(scrollIntoViewOptions)
Parameters
Events
Events are triggered by user interactions, such as clicking a button or entering a value. Use event handlers to trigger queries or other actions in response to events.