The Heading component for Retool Mobile
A content area to display text.
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 |
| ||||||
Default |
|
Examples
true
textAlign
The alignment of the text within the input field.
Type | string | ||||||||
Mutability | Read-only | ||||||||
Allowed Values |
|
value
The current or default value.
Type | string | ||||||
Format | Plain Text | ||||||
Mutability |
| ||||||
Default |
|
Examples
Hello world!
width
The width.
Type | string | ||||||
Format | Integer | ||||||
Mutability |
| ||||||
Allowed Values |
|
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.
heading.clearValue()
Examples
Clear the current value of heading
.
heading.clearValue();
heading.resetValue()
Examples
Reset the current value of heading
.
heading.resetValue();
heading.setHidden()
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
heading.setHidden(hidden)
Parameters
Examples
true
Examples
Hide heading
.
heading.setHidden(true);
Unhide heading
.
heading.setHidden(false);
heading.setValue(value)
Examples
Set the current value of heading
to userValue
.
heading.setValue(userValue);