Back to Website
Show / Hide Table of Contents

Static text

  • Last updated on December 29, 2023
  • •
  • Less than a minute to read

A widget to display some text.


{
    "name": "my-static-text",
    "type": "static-text", 
    "params": {...}
}

Text

This is a simple widget displaying some text in the user interface. To add text, use the text property.

images/static-text-default.png

{
    "name": "my-text",
    "type": "static-text",
    "params": {
        "text": "Hello, world!"
    }
}

Title

Like other widgets, static-text allows you to enable a title.

images/static-text-title.png

{
    "name": "my-text",
    "title": "This is your static-text widget.",
    "type": "static-text",
    "params": {
        "text": "Hello, world!"
    }
}

Displaying the content of another widget

You may want to display values of another widget for debug purposes or just to visualize them.

images/static-text-dymanic-expression.gif

To refer to another widget's value, you can use the {{$['widget-name']._}} syntax in the text param. In the following example, we display the string entered in the input-text widget.

{
    "name": "my-text",
    "title": "This is your static-text widget.",
    "type": "static-text",
    "params": {
        "text": "{{$['my-input']._}}"
    }
},
{
    "name": "my-input",
    "type": "input-text",
    "title": "Input your text",
    "params": {
        "isTextArea": true
    }
}

Params

Name Type Description Default value
text string text to be displayed empty string
Was this page helpful?
Thanks for your feedback!
In This Article
  • Text
  • Title
  • Displaying the content of another widget
  • Params
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback