Skip to main content

The WebView component for Retool Mobile

A content area to embed a web page.

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.

buttonSize

The size of the button.

Type string
Configurability Inspector
Allowed Values
ValueDescription
small

Small button.

large

Large button.

Defaultnull

Examples
"Label"

disabled

Whether input, interaction, selection, or triggering is disabled.

Type boolean
Format True/False
Configurability Inspector > Interaction > Disabled
Defaultfalse
Examples
true

hidden

Whether this object is hidden from view.

Type boolean
Format True/False
Configurability Inspector > Appearance > Hidden
Defaultfalse
Examples
true

Examples
/icon:bold/shopping-gift

Examples
/icon:bold/shopping-gift

url

The URL.

Type string
Configurability Read-only
Defaultnull

width

The width.

Type number
Format Integer
Configurability Inspector
Defaultnull
Examples
1280

Methods

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

webView.setDisabled()

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

Definition
webView.setDisabled(disabled)
Parameters

disabled

Whether input, interaction, selection, or triggering is disabled.

Type boolean
Format True/False
Default
false
Examples
true

Examples

Disable webView.

webView.setDisabled(true);

Enable webView.

webView.setDisabled(false);

webView.setHidden()

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

Definition
webView.setHidden(hidden)
Parameters

hidden

Whether this object is hidden from view.

Type boolean
Format True/False
Default
false
Examples
true

Examples

Hide webView.

webView.setHidden(true);

Unhide webView.

webView.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