Tree
A hierarchical components for representing directory structures, navigation menus, and nested data.
Basic Tree
<prism-tree [data]="treeData" />Directory Mode
assets
index.html
<prism-tree
[data]="directoryData"
[directoryMode]="true"
[expandedKeys]="['root']"
/>Checkable
Checked: []
<prism-tree
[data]="treeData"
[checkable]="true"
[(checkedKeys)]="checkedKeys"
/>Tree API
| Name | Type | Default | Description |
|---|---|---|---|
data | PrismTreeNode[] | - | The tree data source |
showLine | boolean | false | Whether to show connecting lines |
directoryMode | boolean | false | Whether to use directory icons |
checkable | boolean | false | Whether to show checkboxes |
multiple | boolean | false | Whether to allow multiple selection |
search | string | "" | Filter the tree based on title |