The Editable Text component for Retool Apps
A click-to-edit input field to enter a single line of text.
Editable Text is a single-line input field for text values. It functions similarly to Text Input but renders as plain text until clicked.
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.
autoCapitalize
The type of automatic capitalization that the browser can automatically perform when using virtual or on-screen keyboards.
Type | string | ||||||||||
Format | Plain Text | ||||||||||
Configurability | Inspector > Interaction > Advanced > Capitalize | ||||||||||
Allowed Values |
| ||||||||||
Default | none |
Examples
"words"
autoComplete
Whether the browser can perform autocomplete on the input field.
Type | boolean |
Format | True/False |
Configurability | Inspector |
Default | false |
Examples
true
autoFill
The data type of the input field for browsers to autofill if autoComplete
is true
.
Type | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | Plain Text | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configurability | Inspector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Allowed Values |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Default | off |
Examples
"email"
editIcon
The icon to display that indicates an editable value.
Type | string |
Format | Icon Key |
Configurability | Inspector > Content > Add-ons > Edit icon |
Default | "/icon:bold/interface-edit-write-1" |
Examples
/icon:bold/interface-edit-write-1
enforceMaxLength
Whether to enforce the maximum length.
Type | boolean |
Format | True/False |
Configurability | Inspector > Interaction > Advanced > Enforce max length |
Default | false |
Examples
true
events
A list of configured event handlers that trigger actions or queries.
Type | array |
Array values | object |
Configurability | Inspector > Interaction > Event handlers |
Default | null |
Array Object Properties
event
The event that triggers the action. Refer to the events section for details of available events for this object.
Type | string |
Configurability | Inspector > Interaction > Event handlers > Event |
Default | null |
method
The JavaScript method to perform when type
is datasource
, widget
, state
, or localStorage
.
Type | string |
Configurability | Inspector > Interaction > Event handlers > Edit event handler > Run script actions |
Default | null |
type
The type of action to perform.
Type | string | ||||||||||||||
Configurability | Inspector > Interaction > Event handlers > Edit event handler > Action | ||||||||||||||
Allowed Values |
| ||||||||||||||
Default | null |
iconAfter
The suffix icon to display.
Type | string |
Format | Icon Key |
Configurability | Inspector > Content > Add-ons > Suffix icon |
Default | null |
Examples
/icon:bold/shopping-gift
iconBefore
The prefix icon to display.
Type | string |
Format | Icon Key |
Configurability | Inspector > Content > Add-ons > Prefix icon |
Default | null |
Examples
/icon:bold/shopping-gift
id
The unique identifier (name).
Type | string |
Format | Plain Text |
Configurability | Inspector |
Default | editableText1 |
Examples
query1
button1
inputTooltip
The tooltip helper text to display below the input on focus.
Type | string |
Format | Plain Text |
Configurability | Inspector > Content > Add-ons > Helper text |
Default | `Shift+Enter` to save, `Esc` to cancel |
Examples
`Shift+Enter` to save, `Esc` to cancel
inputValue
The default or most recently entered value.
Type | string |
Configurability | Read-only |
Default | null |
isHiddenOnDesktop
Whether to show or hide this object in the desktop layout.
Type | boolean |
Format | True/False |
Configurability | Inspector > Appearance > Advanced > Show on desktop |
Default | false |
Examples
true
isHiddenOnMobile
Whether to show or hide this object in the mobile layout.
Type | boolean |
Format | True/False |
Configurability | Inspector > Appearance > Advanced > Show on mobile |
Default | true |
Examples
true
labelPosition
The position of the label relative to the input field or value.
Type | string | |||||||||
Format | Plain Text | |||||||||
Configurability | Inspector > Content > Add-ons > Label > Position | |||||||||
Allowed Values |
| |||||||||
Default | left |
Examples
top
loading
Whether to display a loading indicator.
Type | boolean |
Format | True/False |
Configurability | Inspector > Interaction > Loading |
Default | false |
Examples
true