heading
Overview
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.
Basic Example
You can use a XML String Formatting to make the text inside the heading dynamic:
Standard Attributes
value
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.
Example: Without value
value
Example: With value
value
Advanced Attributes
align-text
align-text
Optional
Type: center
| left
| right
Default: left
Specify how the heading text should be aligned.
Example: heading
with center-aligned text
heading
with center-aligned textcolor
and divider-color
color
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
idid
show-if
and hide-if
show-ifhide-ifshow-if
and hide-if
sub-heading
sub-heading
Optional
Type: string
Default: unset
Specify sub-heading text that will display in a smaller font below the heading.
sub-heading-color
sub-heading-color
Optional
Type: string
Default: Primary font color
Specify the text color of the heading's sub-heading text.
Component Methods
The following component methods are available when an id
is assigned to the component and component.heading({id:'my-id'})
is called from JS/TS:
scrollIntoView
scrollIntoView
Programmatically scroll until the heading
is visible in the view.
Last updated