Skip to main content

react-complex-tree

Enumerations

Classes

Interfaces

Type aliases

AllTreeRenderProps

Ƭ AllTreeRenderProps<T, C>: Required<TreeRenderProps<T, C>>

Type parameters

NameType
Tany
Cextends string = never

Defined in

types.ts:132


DataSource

Ƭ DataSource<T>: ExplicitDataSource<T> | ImplicitDataSource<T>

Type parameters

NameType
Tany

Defined in

types.ts:189


Disposable

Ƭ Disposable: Object

Type declaration

NameType
dispose() => void

Defined in

types.ts:377


DraggingPosition

Ƭ DraggingPosition: DraggingPositionItem | DraggingPositionBetweenItems

Defined in

types.ts:281


IndividualTreeViewState

Ƭ IndividualTreeViewState<C>: { expandedItems?: TreeItemIndex[] ; focusedItem?: TreeItemIndex ; selectedItems?: TreeItemIndex[] ; untruncatedItems?: TreeItemIndex[] } & { [c in C]: TreeItemIndex | TreeItemIndex[] | undefined }

Type parameters

NameType
Cextends string

Defined in

types.ts:170


TreeChangeActionsContextProps

Ƭ TreeChangeActionsContextProps: TreeChangeActions

Defined in

types.ts:360


TreeEnvironmentActionsContextProps

Ƭ TreeEnvironmentActionsContextProps: TreeEnvironmentChangeActions

Defined in

types.ts:226


TreeItemIndex

Ƭ TreeItemIndex: string | number

Defined in

types.ts:3

Functions

ControlledTreeEnvironment

Const ControlledTreeEnvironment<T, C>(p): ReactElement<any, string | JSXElementConstructor<any>>

Type parameters

NameType
Tany
Cextends string = never

Parameters

NameType
pControlledTreeEnvironmentProps<T, C> & { ref?: Ref<TreeEnvironmentRef<T, C>> }

Returns

ReactElement<any, string | JSXElementConstructor<any>>

Defined in

controlledEnvironment/ControlledTreeEnvironment.tsx:12


Tree

Const Tree<T>(p): ReactElement<any, string | JSXElementConstructor<any>>

Type parameters

NameType
Tany

Parameters

NameType
pTreeProps<T, never> & { ref?: Ref<TreeRef<T>> }

Returns

ReactElement<any, string | JSXElementConstructor<any>>

Defined in

tree/Tree.tsx:14


UncontrolledTreeEnvironment

Const UncontrolledTreeEnvironment<T, C>(p): ReactElement<any, string | JSXElementConstructor<any>>

Type parameters

NameType
Tany
Cextends string = never

Parameters

NameType
pUncontrolledTreeEnvironmentProps<T, C> & { ref?: Ref<TreeEnvironmentRef<T, C>> }

Returns

ReactElement<any, string | JSXElementConstructor<any>>

Defined in

uncontrolledEnvironment/UncontrolledTreeEnvironment.tsx:22


createDefaultRenderers

Const createDefaultRenderers(renderDepthOffset): Required<TreeRenderProps<any, never>>

Parameters

NameType
renderDepthOffsetnumber

Returns

Required<TreeRenderProps<any, never>>

Defined in

renderers/createDefaultRenderers.tsx:6


useTree

Const useTree(): TreeContextProps

Returns

TreeContextProps

Defined in

tree/Tree.tsx:12


useTreeEnvironment

Const useTreeEnvironment(): TreeEnvironmentContextProps<any, never>

Returns

TreeEnvironmentContextProps<any, never>

Defined in

controlledEnvironment/ControlledTreeEnvironment.tsx:10