.text
element
(.t)
The .text
action displays text in the UI. It belongs to the text category within the ui area.
Action Syntax
.text "text"
A quoted text string
.text $variable
A variable name starting with $
Valid sizes
tiny
small
medium
large
extra
Styles
.tight
minimal line spacing
.text.tight "example text"
Modifiers
goto
The .text
action supports the goto
modifier.
Examples
// Basic Usage
.text "hello world"
// Using Variables
// Display dynamic content from variables
.text $eventname
// With Styles
// Apply the .tight style modifier
.text.tight "example text"
Additional Notes
.text
action is the most fundamental way to display content in Rhappsody apps. It’s lightweight and performant, making it ideal for:
- Status messages
- Labels and captions
- Dynamic content from variables
- User feedback
Security Considerations
All text content is automatically HTML-escaped to prevent XSS attacks. If you need to display raw HTML, use the .html
action instead.
Performance Tips
- For large blocks of text, consider using
.paragraph
instead - When displaying many text elements, use the
.tight
style to reduce spacing
Action code: 1998052526
Version: 0.6.4-49
Last updated: 2025-06-13