Interface: TreeRenderProps<T, C>
Type parameters
| Name | Type |
|---|---|
T | any |
C | extends string = never |
Hierarchy
TreeRenderProps
Properties
renderDepthOffset
• Optional renderDepthOffset: number
Defined in
renderDragBetweenLine
• Optional renderDragBetweenLine: (props: { draggingPosition: DraggingPosition ; lineProps: HTMLProps<any> }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.draggingPosition | DraggingPosition |
props.lineProps | HTMLProps<any> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderItem
• Optional renderItem: (props: { arrow: ReactNode ; children: ReactNode ; context: TreeItemRenderContext<C> ; depth: number ; info: TreeInformation ; item: TreeItem<T> ; title: ReactNode }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.arrow | ReactNode |
props.children | ReactNode |
props.context | TreeItemRenderContext<C> |
props.depth | number |
props.info | TreeInformation |
props.item | TreeItem<T> |
props.title | ReactNode |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderItemArrow
• Optional renderItemArrow: (props: { context: TreeItemRenderContext<C> ; info: TreeInformation ; item: TreeItem<T> }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.context | TreeItemRenderContext<C> |
props.info | TreeInformation |
props.item | TreeItem<T> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderItemTitle
• Optional renderItemTitle: (props: { context: TreeItemRenderContext<C> ; info: TreeInformation ; item: TreeItem<T> ; title: string }) => null | string | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | string | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.context | TreeItemRenderContext<C> |
props.info | TreeInformation |
props.item | TreeItem<T> |
props.title | string |
Returns
null | string | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderItemsContainer
• Optional renderItemsContainer: (props: { children: ReactNode ; containerProps: HTMLProps<any> ; depth: number ; info: TreeInformation ; parentId: TreeItemIndex }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.children | ReactNode |
props.containerProps | HTMLProps<any> |
props.depth | number |
props.info | TreeInformation |
props.parentId | TreeItemIndex |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderLiveDescriptorContainer
• Optional renderLiveDescriptorContainer: (props: { children: ReactNode ; tree: TreeConfiguration }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.children | ReactNode |
props.tree | TreeConfiguration |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderRenameInput
• Optional renderRenameInput: (props: { formProps: FormHTMLAttributes<HTMLFormElement> ; inputProps: InputHTMLAttributes<HTMLInputElement> ; inputRef: Ref<HTMLInputElement> ; item: TreeItem<T> ; submitButtonProps: HTMLProps<any> ; submitButtonRef: Ref<any> }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.formProps | FormHTMLAttributes<HTMLFormElement> |
props.inputProps | InputHTMLAttributes<HTMLInputElement> |
props.inputRef | Ref<HTMLInputElement> |
props.item | TreeItem<T> |
props.submitButtonProps | HTMLProps<any> |
props.submitButtonRef | Ref<any> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderSearchInput
• Optional renderSearchInput: (props: { inputProps: HTMLProps<HTMLInputElement> }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.inputProps | HTMLProps<HTMLInputElement> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Defined in
renderTreeContainer
• Optional renderTreeContainer: (props: { children: ReactNode ; containerProps: HTMLProps<any> ; info: TreeInformation }) => null | ReactElement<any, string | JSXElementConstructor<any>>
Type declaration
▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
| Name | Type |
|---|---|
props | Object |
props.children | ReactNode |
props.containerProps | HTMLProps<any> |
props.info | TreeInformation |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>