Nested List

A nested list is a hierarchical list where each root item item can be collapsed and expanded by clicking on a chevron. The following examples all use the same json configuration (field items):

[{
  "id": 1,
  "title": "Item1",
  "url": "#",
  "children": [{
      "id": 2,
      "title": "Item1.1"
    },
    {
      "id": 3,
      "title": "Item1.2",
      "children": [{
          "id": 4,
          "title": "Item1.2.1",
          "url": "#"
        }]
    }]
},
{
  "id": 5,
  "title": "Item2",
  "url": "#",
  "children": [{
       "id": 5,
       "title": "Item2.1"
    }]
},
{
  "id": 6,
  "title": "Item3",
  "children": [{
       "id": 7,
       "title": "Item3.1",
       "url": "#"
    }]
}]

To make this style responsive the field title_prefix can be used. If this is set to something else than the empty string the list will be collapsed on smaller screens and this string will be prefixed to the selected item.

Unknown Style styleSignature

Nested List

By default every root item is collapsed such that the chevron next to it must be clicked to expand. The field is_expanded changes this default behaviour such that every item is expanded.

Item1.1
Item1.2
Item2.1
Item3
Static Nested List

If required, the field is_collapsible can be unchecked to prevent the chevrons from being rendered. This can be useful if the list has no hierarchy as the horizontal spacing will be reduced. Note that the field is_expanded is ignored when is_collapsible is not set.

Item1.1
Item1.2
Item2.1
Item3
Nested List with Search Field

If the field search_text is set a search bar appears on top of the list which allows to search for a specific item. The text of the field search_text is used as a placeholder in the search input field.

Item1.1
Item1.2
Item2.1
Item3
Responsiveness of Nested Lists

To make this style responsive the field title_prefix can be used. If this is set to something else than the empty string the list will be collapsed on smaller screens and this string will be prefixed to the selected item.

Item1.1
Item1.2
Item2.1
Item3