Skip to main content

Interface: TreeProps<T, C>

Type parameters​

NameType
Tany
Cextends string = never

Hierarchy​

Properties​

renderDepthOffset​

• Optional renderDepthOffset: number

Inherited from​

Partial.renderDepthOffset

Defined in​

types.ts:136


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​
NameType
propsObject
props.draggingPositionDraggingPosition
props.linePropsHTMLProps<any>
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderDragBetweenLine

Defined in​

types.ts:122


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​
NameType
propsObject
props.arrowReactNode
props.childrenReactNode
props.contextTreeItemRenderContext<C>
props.depthnumber
props.infoTreeInformation
props.itemTreeItem<T>
props.titleReactNode
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderItem

Defined in​

types.ts:76


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​
NameType
propsObject
props.contextTreeItemRenderContext<C>
props.infoTreeInformation
props.itemTreeItem<T>
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderItemArrow

Defined in​

types.ts:93


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​
NameType
propsObject
props.contextTreeItemRenderContext<C>
props.infoTreeInformation
props.itemTreeItem<T>
props.titlestring
Returns​

null | string | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderItemTitle

Defined in​

types.ts:86


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​
NameType
propsObject
props.childrenReactNode
props.containerPropsHTMLProps<any>
props.depthnumber
props.infoTreeInformation
props.parentIdTreeItemIndex
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderItemsContainer

Defined in​

types.ts:108


renderLiveDescriptorContainer​

• Optional renderLiveDescriptorContainer: (props: { children: ReactNode ; tree: TreeConfiguration }) => null | ReactElement<any, string | JSXElementConstructor<any>>

Type declaration​

▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters​
NameType
propsObject
props.childrenReactNode
props.treeTreeConfiguration
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderLiveDescriptorContainer

Defined in​

types.ts:131


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​
NameType
propsObject
props.formPropsFormHTMLAttributes<HTMLFormElement>
props.inputPropsInputHTMLAttributes<HTMLInputElement>
props.inputRefRef<HTMLInputElement>
props.itemTreeItem<T>
props.submitButtonPropsHTMLProps<any>
props.submitButtonRefRef<any>
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderRenameInput

Defined in​

types.ts:99


renderSearchInput​

• Optional renderSearchInput: (props: { inputProps: HTMLProps<HTMLInputElement> }) => null | ReactElement<any, string | JSXElementConstructor<any>>

Type declaration​

▸ (props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters​
NameType
propsObject
props.inputPropsHTMLProps<HTMLInputElement>
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderSearchInput

Defined in​

types.ts:127


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​
NameType
propsObject
props.childrenReactNode
props.containerPropsHTMLProps<any>
props.infoTreeInformation
Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from​

Partial.renderTreeContainer

Defined in​

types.ts:116


rootItem​

• rootItem: string

Inherited from​

TreeConfiguration.rootItem

Defined in​

types.ts:391


treeId​

• treeId: string

Inherited from​

TreeConfiguration.treeId

Defined in​

types.ts:390


treeLabel​

• Optional treeLabel: string

Inherited from​

TreeConfiguration.treeLabel

Defined in​

types.ts:392


treeLabelledBy​

• Optional treeLabelledBy: string

Inherited from​

TreeConfiguration.treeLabelledBy

Defined in​

types.ts:393