Edit page

TreeNode

TreeNode fetches data from server and render them in a tree.

Prop nameTypeDefaultRequiredDescription
selectedIdanyfalse

selected content id, can be multiple(eg. parent&child both selected)

rootIDnumbertrue

Root id of the tree

contenttypeArray<string>true

Content types of the tree

onDataFetched(data: any) => voidfalse

Callback when tree data is fetched

showRootbooleanfalse

Show root node or not

renderItem(node: any) => Elementfalse

Customized render

onClick(e: any, nodeData: any) => voidfalse

onClick event