Text
A text box to display plain text, Github Flavored Markdown, or HTML content. It supports most presentation attributes, such as images, links, and text formatting.
Properties
Available properties for Text with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The current value.
Whether to disable Markdown rendering and display plain text.
Whether the height automatically resizes to fit content or is a fixed size.
Whether the component is visible.
The horizontal alignment of the contents.
Whether images are cropped to fit or scaled to fill the width of the component.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
The overflow behavior when the contents exceeds the height of the component. Either scroll
to display a scrollbar or hidden
to clip the contents.
Whether the component remains visible in the editor if hidden
is true
.
The text to display in a tooltip on hover or focus.
The vertical alignment of the contents.
Methods
Methods for interacting with Text. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Set the current value.
Clear the current value.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
Reset value
to the default value.