API: Primitives
TreeComponent
Component reference for TreeComponent with the selector qz-tree.
Overview
- Kind: Component
- Source: packages/primitives/src/tree/tree.component.ts:75
Selector
qz-tree
Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
nodes |
TreeNode<unknown>[] |
Yes | ||
config |
Partial<TreeConfig> |
{} |
||
nodeTemplate |
TemplateRef<TreeNodeContext> | null |
null |
||
loadChildren |
TreeLoadChildrenFn | null |
null |
Optional per-level loader. When set, a node with hasChildren: true and no children fetches them the first time it is expanded โ once; collapsing and re-expanding does not repeat the request. expandAll() never triggers it. |