Alert

A message box to display important information with optional title. It supports four alert types of varying severity, each with a suitable color and icon.

Alert can also include a separate link to trigger a query or action when clicked.

Properties

Available properties for Alert. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.

NameDescriptiontype

The type of alert. Either success, error, warning, or info. Defaults to info if any other value is set.

title

The primary text content.

description

The secondary text content.

buttonText

The action link text.

Events

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

NameDescriptionClick

A user clicks the component.

Methods

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