List Item

List Item

Function: a!richTextListItem()

Displays a nested list within a bulleted or numbered list in a Rich Text component.

Parameters

Name Keyword Types Description

Text

text

Text or Styled Text

Array of text to display as a rich text list item. Text can be formatted using a!richTextItem().

Nested List

nestedList

Bulleted List or Numbered List

A bulleted or numbered list to nest within the rich text list item. Use a!richTextBulletedList() or a!richTextNumberedList().

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

  • If Text is null or contains an empty array, no text is displayed for the list item.
  • If Nested List is null, no nested list is displayed within the parent list.
  • A nested list need not be the same type of list as its parent list. Bulleted lists can be nested within numbered lists and vice versa.

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
33
34
35
36
37
38
39
40
41
42
43
44
a!richTextDisplayField(
  labelPosition: "COLLAPSED",
  value: {
    a!richTextBulletedList(
      items: {
        "a",
        a!richTextListItem(
          text: "b",
          nestedList: a!richTextBulletedList(
            items: {
              "c",
              a!richTextListItem(
                text: "d",
                nestedList: a!richTextBulletedList(
                  items: {
                    a!richTextListItem(
                      text: "e",
                      nestedList: a!richTextBulletedList(
                        items: {
                          "f",
                          "g"
                        }
                      )
                    )
                  }
                )
              )
            }
          )
        ),
        "h",
        a!richTextListItem(
          text: "i",
          nestedList: a!richTextBulletedList(
            items: {
              "j",
              "k"
            }
          )
        )
      }
    )
  }
)

Displays the following:

Open in Github Built: Thu, Feb 23, 2023 (02:59:22 PM)

On This Page

FEEDBACK