Back to Website
Show / Hide Table of Contents

Static text

  • Less than a minute to read

This is a very simple widget displaying a text string. You can use StaticText as a stub.

General information

  • type: static-text

Properties

  • text - a text string.

Examples

Basic usage

{
    "type": "static-text", 
    "name": "stub",
    "params": {
        "text": "No options available."
    }
}

Displaying the content of another widget

For debug purposes, it may be convenient to use this widget to display dynamic values from another widget. For example, you have an option widget called treatment. To see its value when the user selects it, use the config like this:

{
    "type": "static-text", 
    "name": "debug-treatment",
    "params": {
        "text": "{{$['treatment']._.title}}"
    }
}

For more complicated texts where you need to add HTML markup, use the Html widget.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback