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 | tiny | small | regular | medium | large | extra-large | string | false | Size of the text with predefined values or expression |
weight | extra-light | light | regular | semi-bold | bold | extra-bold | string | 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 | extra-low | low | low-medium | medium | high | string | 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 component. |
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
The object must be any of the following types:
Weight of the text
The object must be any of the following types:
Define color of text or color based on conditions. First evaluated to true will be used.
Change opacity of text
The object must be any of the following types:
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 component.
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 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