Function: a!richTextHeader()
Displays heading-styled text within a rich text component.
Parameters
Name | Keyword | Type | Description |
---|---|---|---|
Text | text | Text or Styled Text | Array of text to display as a rich text item. |
Size | size | Text | Determines the text size. Valid values: "SMALL" , "MEDIUM" (default), "LARGE" . |
Link | link | Link | Link to apply to the text. Create links with |
Link Style | linkStyle | Text | Determines how the link is underlined. Valid values: "INLINE" (default), "STANDALONE" . |
Visibility | showWhen | Boolean | Determines whether the component is displayed on the interface. When set to false, the component is hidden and is not evaluated. Default: true. |
Notes
Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
a!richTextDisplayField(
label: "Heading Sizes",
labelPosition: "ABOVE",
value: {
a!richTextHeader(
text: "Small Heading",
size: "SMALL"
),
a!richTextHeader(
text: "Medium Heading",
size: "MEDIUM"
),
a!richTextHeader(
text: "Large Heading",
size: "LARGE"
),
a!richTextHeader(
text: "Medium Standalone Link Heading",
link: a!dynamicLink(
),
linkstyle: "STANDALONE",
size: "MEDIUM"
),
a!richTextHeader(
text: "Medium Inline Link Heading",
link: a!dynamicLink(
),
linkstyle: "INLINE",
size: "MEDIUM"
)
}
)
Displays the following:
The following patterns include usage of the Header Text Component.
Grid with Selection Pattern (Grids): This pattern is an example of good UX design for a grid that allows users to select items and easily view their selections when there are multiple pages of data. It also provides information on a common save behavior.
User List Pattern (Looping): The user list pattern retrieves all the users in a specified group and displays them in a single column.
Year-Over-Year Report (Charts, Reports, Formatting): This is a feature-rich, interactive report for sales and profits by products over select periods of time.