heading
Last updated
Last updated
Displays text in a large format to serve as a heading (e.g. for a section of one of your app's screens).
heading
was visually updated in version 4.73.0 of the JourneyApps Runtime.
You can use a XML String Formatting to make the text inside the heading dynamic:
value
Optional
Type: string
Default: unset
The text in the heading
. This is an alternative to specifying the text directly inside the <heading>...</heading>
tags.
value
value
align-text
Optional
Type: center
| left
| right
Default: left
Specify how the heading text should be aligned.
heading
with center-aligned textcolor
and divider-color
Optional
Type: string
- can be a named color or #HEX value
Default: Primary font color
Specify the text color of the particular heading component.
id
show-if
and hide-if
sub-heading
Optional
Type: string
Default: unset
Specify sub-heading text that will display in a smaller font below the heading.
sub-heading-color
Optional
Type: string
Default: Primary font color
Specify the text color of the heading's sub-heading text.
scrollIntoView
Programmatically scroll until the heading
is visible in the view.
The following component methods are available when an is assigned to the component and component.heading({id:'my-id'})
is called from JS/TS: