---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Content tree component setup

# Content tree component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read  
The Content tree component combines and organizes data into an expandable
and selectable tree structure. You can configure the tree structure to include options such
as identifiers, highlighted values, chevrons, text, icons, and dividers.

## Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
Note:  
This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

## Procedure

1. Define a label for your Content tree that differentiates it from other components in the [Customize UI pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.") .  
   A label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .
2. Select the Content tree component, using one of these methods:
   * Click anywhere within the component.
   * Select the Content tree label you created for your component in the content tree.

   {#content-tree-component-uib-setup__choices_wxw_33y_znb}  
   The property fields appear in the Config tab in the
   setup panel on the right.
{#content-tree-component-uib-setup__steps_vxw_33y_znb}

## Content tree component properties {#ariaid-title2}

Configure the appearance and features of the Content tree component.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#content-tree-config-properties__choices_4jq_bp0_csl}
{#content-tree-config-properties__table_bfr_rky_znb__entry__3}

| Field | Property | Description |
|-|-|-|
| Size | size | Size of tree item label and icon. |
| Selection | select | Behavior when a user clicks a selectable tree item. Choose from the following options. * single - only one tree item can be selected at a time * multi - multiple tree items can be selected at the same time * none - no tree items can be selected {#content-tree-config-properties__ul_ajn_gny_znb} |
| Overflow | overflow | Behavior when tree items are too wide to fit in the space given to the tree. Choose from the following options. * scroll - the entire tree scrolls horizontally in its container * truncate - the item text is truncated to prevent side scrolling * wrap - the item text wraps over multiple lines to prevent side scrolling {#content-tree-config-properties__ul_ijh_vny_znb} |
| Trigger icon | triggerIcon | Type of expand/collapse icon a parent item displays. |
| Highlight immediate parent | highlightSelectedParent | Option to highlight the parent of the current selection with a different highlight color. |
| Hide icons on default | showActionsOnHover | Option to show icons only on hover. |
| Show dividers | showDividers | Option to display a border on the bottom of each tree item. |
| Show presence pattern | showPresencePattern | Option to display an accessible presence icon with a pattern to make it distinguishable by a means other than color. |
| Items | items | Array of tree item objects that describe each item in the tree. |
| Expanded items | expandedItems | Array of path IDs that trace the path of the item from the root of the tree to the expanded item. A path ID is an array of string or numeric values. |
| Selected items | selectedItems | Array of path IDs that trace the path of the item from the root of the tree to the selected item. A path ID is an array of string or numeric values. |
| Loading items | loadingItems | Array of tree items that are actively being loaded or that have recently failed to load children from the server. The array contains a path ID, an optional error flag, and an error message. |
| Search item | searchTerm | Text value to search for and highlight in tree item labels. Matching is case-insensitive and applies to all occurrences within an item label. |
| ARIA properties | configAria | A JSON field for configuring ARIA properties, such as aria-braillelabel. |
[ ]

{#content-tree-config-properties__table_bfr_rky_znb}

## Content tree component events {#ariaid-title3}

Select event handlers to configure the actions (events) provided with the Content tree component.
The Events tab shows the events used by the Content tree component. To view the
available events, select + Add event mapping. Select the event in
the list to add one or more event handlers.

### Event handlers {#content-tree-config-events__section_owd_5f1_vwb}

Event handlers work with data resources to link the Content tree actions to the data you
want to display to your users. Select the event in the list to add one or more event
handlers.

For instructions on adding event handlers to an event, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.").

### Event descriptions {#content-tree-config-events__section_y3f_wf1_vwb}

{#content-tree-config-events__table_l11_gwy_znb__entry__2}

| Event | Description |
|-|-|
| Content tree item selected | Dispatched when the user selects an item on the content tree. |
| Content tree actionable item clicked | Dispatched when the user clicks an actionable tree item label. |
| Content tree action clicked | Dispatched when a user clicks a tree item action icon. |
| Content tree action mouseleave | Dispatched when a user's mouse stops hovering over a tree item action icon. |
| Content tree action mouseenter | Dispatched when a user's mouse hovers over a tree item action icon. |
| Content tree loading requested | Dispatched when a user triggers loading of a parent item's children from the server. |
| Content tree loading cancelled | Dispatched when a user cancels loading of a parent item's children from the server. Remove the item's path from the Loading items list even if it is currently in the error state. If the request can't be cancelled (such as it used fetch) and it succeeds later, then handle its response and add the children without re-expanding the item. If the request can't be cancelled and it fails later, then don't re-add the item to Loading items with an error message. |
| Content tree items set | Dispatched when the Items property should be updated. |
| Content tree expanded items set | Dispatched when the Expanded items property should be updated. |
| Content tree selected items set | Dispatched when the Selected items property should be updated. |
[ ]

{#content-tree-config-events__table_l11_gwy_znb}

