Text (Alpha)
The custom component text allows adding text inside custom components. For example, adding text inside a Card (Alpha) or View (Alpha).
For steps on creating a custom component, see How to create a custom component.
You can use when and instanceId with component.text, add the properties before the options property. The available list of options is shown below. For the full list of properties, see jc-text.
Options | value |
---|---|
align | Determine the text alignment, options are: center left right |
color | Multiple, use IntelliSense to view the available list. See Jigx color palette to view the different colors. |
decoration |
|
emphasis | Change the text's brightness and boldness. high low low-medium medium |
numberOfLines | Use a number to indicate the number of lines of text. Use an expression to determine the number of lines needed. |
onPress | Multiple, use to view the list of available actions to call. |
size | Adjust the size of the text, the following sizes are available: extra-large large medium regular small tiny |
value | Provide the text to be used. You can use an Expressions, as well as Localization. |
weight | Determine how thick or bold the text must be, the following weights are available: bold extra-bold extra-light light regular semi-bold |