Text
The Avonni Text component displays a block of formatted text — static, dynamic, or a combination — making it useful for labels, headings, data display, and debugging.
Overview
The Text component can render:
Static text: Content you type directly into the configuration.
Dynamic text: A value derived from a Variable, Constant, Formula, or a Salesforce record field.
A combination: Static text mixed with dynamic values using formulas.
Use Cases
Labels and Headings: Structure your UI with static text labels, headings, and subheadings.
Displaying Data: Show the value of a field from a Salesforce record (e.g., an Account's name).
Troubleshooting: Display the value of Variables, Formulas, or component attributes to inspect what is happening in your Dynamic Component.
Placeholder Text: Show temporary placeholder text before data is loaded.
Concatenating Values: Combine and display multiple values in a single block.
Configuration
To configure the Text component, select it on the canvas. The configuration panel opens on the right. The sections below mirror its properties.
Properties
Content
The Content field defines what the component displays. It supports rich text formatting — bold, italic, links, and lists.
You can set it in several ways:
Static text: Type the content directly into the rich text editor.
Resource binding: Click the resource selector icon and choose a Variable, Constant, or Formula to display its value dynamically.
Formula: Click the resource selector icon, choose the Formula data type, and compose an expression that evaluates to text.
Set Component Visibility
All components support conditional visibility — see Component Visibility.
Styling
Configure the Text component's appearance from the Style tab of the Edit Text panel.
Controls the outer spacing around the component.
Top / Right / Bottom / Left: Adjust the space on each side.
Controls the inner spacing around the text.
Top / Right / Bottom / Left: Adjust the space on each side.
Controls the component's dimensions.
Width / Height: Set fixed dimensions.
Min Width / Max Width / Min Height / Max Height: Constrain the size within bounds.
Overflow: Control how content that exceeds the bounds is handled.
Customizes the border surrounding the component.
Color / Size / Style / Radius: Set the border color, thickness, style, and corner rounding.
Styles the text content.
Color / Font Size / Font Style / Font Weight: Set the text color and typography.
Alignment: Set the horizontal alignment of the text.
Line Clamp: Limit the text to a maximum number of lines.
Troubleshooting Common Issues
Content not updating — If the displayed value does not change when a Variable or Formula changes, verify the Content property is bound to a resource rather than set as static text. Use the resource selector icon to bind it.
Debugging a Variable — Add a Text component, click the resource selector icon next to Content, and select the Variable you want to inspect. The component displays the current value and updates automatically as it changes.
Debugging a Formula — Add a Text component, open the resource selector next to Content, select Mapped, then choose the Formula from the list. The component displays the Formula's calculated value. Remove the Text component once debugging is complete.
Displaying a Component Attribute — Add a Text component, open the resource selector next to Content, select Mapped, then find the component and select the attribute you want to inspect. Its value will be displayed.
Last updated
Was this helpful?
