TreeNode fetches data from server and render them in a tree.
Prop name | Type | Default | Required | Description |
---|---|---|---|---|
selectedId | any | — | false | selected content id, can be multiple(eg. parent&child both selected) |
rootID | number | — | true | Root id of the tree |
contenttype | Array<string> | — | true | Content types of the tree |
onDataFetched | (data: any) => void | — | false | Callback when tree data is fetched |
showRoot | boolean | false | Show root node or not | |
renderItem | (node: any) => Element | — | false | Customized render |
onClick | (e: any, nodeData: any) => void | — | false | onClick event |