Link

A text link to trigger queries and other actions. It can show or hide text underline.

Properties

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

NameTypeDescriptionallowWrapboolean

Whether content can wrap to multiple lines.

clickableboolean

Whether the component has an enabled Click event handler.

disabledboolean

Whether user input, interaction, or selection is disabled.

hiddenboolean

Whether the component is visible.

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

The horizontal alignment of the contents.

iconAfterIconKey

The icon to display after the primary content.

iconBeforeIconKey

The icon to display before the primary content.

loaderPosition'auto' | 'replace' | 'left' | 'right'

The position of the loading indicator if loading is true.

loadingboolean

Whether to display a loading indicator.

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.

showInEditorboolean

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

showUnderline'always' | 'hover' | 'never'

Whether to underline the content.

textstring

The primary text content.

textSize'default' | 'h6' | 'h5' | 'h4' | 'h3' | 'h2' | 'h1'

The text size.

tooltipTextstring

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

underlineStyle'solid' | 'dashed' | 'dotted'

The style of the underline.

Events

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

NameDescriptionClick

A user clicks the component.

Methods

Methods for interacting with Link. 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.

Related components