dtkt.protoui.v1beta1protoui.protoTree
MessageRender as a tree structure with expandable nodes.
Maps to Tree in @dtkt/ui/tree
Use CEL expressions to construct TreeNode messages from your data.
The message or field is available as this in the expression context.
Example: this.folders.map(f, dtkt.protoui.v1beta1.Tree.TreeNode{label: dtkt.protoui.v1beta1.Data{text: f.name}, children: f.files.map(file, dtkt.protoui.v1beta1.Tree.TreeNode{label: dtkt.protoui.v1beta1.Data{text: file.name}})})
| Field | Type | Number | Description |
|---|---|---|---|
| nodes | string | 1 | CEL expression that evaluates to a list of TreeNode messages.
Context: |