Text value
Learn how to define textual content.
This content type defines static or dynamic text values such as titles, colors, and URLs for text schemas.
Examples
Here are some examples of static and dynamic content:
{"type": "text","value": {"type": "static","value": "Hello, world!"}}
Properties
These are the properties common to static and dynamic values:
Static properties
The following properties are available for static values:
- typestring
The type of the value. Always static for static values.
- valuestring
The value itself.
Good to knowYou can use placeholders to insert values from other attributes into the text.
Dynamic properties
The following properties are available for dynamic values:
- typestring
The type of the value. Always dynamic for dynamic values.
- expressionstring
The CQL expression that evaluates to the value.
- nullableboolean
Whether the value can be null.
This value must match the optional property of the associated attribute. In other words, if the attribute is optional, then the value is nullable.
Default:false- default(optional)string|null
The default value to use when the evaluation fails, results in null, or produces an incompatible type.