Skip to main content

The WebView component for Retool Mobile

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
false"Label"

disabled​

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

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

hidden​

Whether this object is hidden from view.

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

Examples
false/icon:bold/shopping-gift

Examples
false/icon:bold/shopping-gift

url​

The URL.

Type string
Configurability Read-only
Defaultnull

width​

The width.

Type number
Format Integer
Configurability Inspector
Defaultnull
Examples
false1280

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