Skip to main content

The HTML component for Retool Mobile

A content area to embed HTML content.

Properties

All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

hidden

Whether this object is hidden from view.

Type boolean
Format True/False
Mutability
ControlUsage
Retool UI Inspector > Appearance > Hidden
MethodsetHidden()
Default
false
Examples
true

horizontalScroll

Whether to support scrolling beyond the width of the viewport.

Type boolean
Mutability
ControlUsage
Retool UI Inspector

html

The HTML content.

Type string
Mutability
ControlUsage
Retool UI Inspector

Methods

JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.

html.setHidden()

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

Definition
html.setHidden(hidden)
Parameters

hidden

Whether this object is hidden from view.

Type boolean
Format True/False
Default
false
Examples
true

Examples

Hide html.

html.setHidden(true);

Unhide html.

html.setHidden(false);

Events

Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.

EventDescription
ClickAn item is clicked or pressed.