jc-text
Text component used mostly in custom components
The schema defines the following properties:
Property | Type | Required | Description |
type | component.text | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Text Options | true | |
Properties of the options object:
Property | Type | Required | Description |
value | string | Expression | TextWithFormat | TextLocale | true | Value of the text |
align | TextAlign | string | false | Alignment of the text |
size | TextSizeDefinition | false | Size of the text with predefined values or expression |
weight | TextWeightDefinition | false | Weight of the text |
color | ColorOrConditionalColor | false | Define color of text or color based on conditions. First evaluated to true will be used. |
emphasis | TextEmphasisDefinition | false | Change opacity of text |
numberOfLines | number | string | false | Will limit maximum of lines rendered |
decoration | underline | line-through | string | false | Text decoration (underline, line-through) or expression |
onPress | false | Action that will be triggered by pressing on this text. |
Value of the text
Alignment of the text
The object must be any of the following types:
Size of the text with predefined values or expression
Weight of the text
Define color of text or color based on conditions. First evaluated to true will be used.
Change opacity of text
Will limit maximum of lines rendered
The object must be any of the following types:
Text decoration (underline, line-through) or expression
The object must be any of the following types:
Action that will be triggered by pressing on this text.
The schema defines the following additional types:
This element must be one of the following enum values:
- left
- right
- center
The object must be any of the following types:
The object must be any of the following types:
The object must be any of the following types:
The object is an array with all elements of the type object.
The array object has the following properties:
This element must be one of the following enum values:
- color1
- color2
- color3
- color4
- color5
- color6
- color7
- color8
- color9
- color10
- color11
- color12
- color13
- color14
This element must be one of the following enum values:
- positive
- negative
- warning
The object must be any of the following types: