LogoLogo
  • What is UDML?
  • Document structure
    • <components>
    • <imports>
    • <instructions>
    • <meta>
    • <styles>
    • <tokens>
    • <mappings>
    • <screens>
  • Directives
    • ai-hint
    • <data> Directive Specification
    • <interaction> Directive
    • <layer> Directive
    • <repeat> Directive
    • <responsive>
    • selection
    • <tracking> Directive
  • Components
    • Layout
      • <accordion> Component
      • <box> Component
      • <column> Component
      • <divider>
      • <grid> Component
      • <row> Component
    • Navigation
      • <breadcrumbs> Component
      • <pagination> Component
      • <tab> Component
      • <tabs> Component
    • Text & Display
      • <avatar>
      • <heading>
      • <icon>
      • <image>
      • <label>
      • <text>
      • <video>
    • Controls & Input
      • <button>
      • <checkbox>
      • <input> Component
      • <radio>
      • <select>
      • <slider>
      • <stepper>
      • <switch>
      • <textarea>
    • Forms
      • <form> Component
      • <formField> Component
      • <formGroup> Component
    • Data Collections
      • <dataColumn> Component
      • <dataTable> Component
      • <list> Component
      • <timeline> Component
      • <treeView> Component
    • Data Visualization
      • <chart> Component
      • <summary> Component
    • Modals
      • <dialog> Component
      • <modal> Component
      • <popover> Component
      • <toast> Component
      • <tooltip> Component
  • Prompting Guides
    • Prompting AI Developer Tools with UDML
    • Working with UDML in an Existing Codebase
  • Contributing to UDML
Powered by GitBook
On this page
  • The <treeView> component displays nested hierarchical data with expandable/collapsible nodes.
  • πŸ›  Attributes
  • βœ… Allowed Content
  • πŸ’‘ Examples
  • 🧩 AI Interpretation Guidelines
Edit on GitHub
  1. Components
  2. Data Collections

<treeView> Component

The <treeView> component displays nested hierarchical data with expandable/collapsible nodes.

πŸ›  Attributes

Attribute
Type
Required
Description

bind

string

Yes

Path to a nested data array

labelKey

string

No

Field name to display for each node label

childrenKey

string

No

Field name for nested children arrays

βœ… Allowed Content

Self-closing only.

πŸ’‘ Examples

File explorer

<treeView bind="files" labelKey="name" childrenKey="children"/>

🧩 AI Interpretation Guidelines

  • Render tree using recursive component patterns.

  • Display each node’s labelKey and use childrenKey for nesting.

  • Support expand/collapse interactions for child nodes.


Previous<timeline> ComponentNextData Visualization

Last updated 2 months ago