react-complex-tree
Enumerations
Classes
Interfaces
- AbstractDraggingPosition
- ControlledTreeEnvironmentProps
- DragAndDropContextProps
- DraggingPositionBetweenItems
- DraggingPositionItem
- DraggingPositionRoot
- ExplicitDataSource
- ImplicitDataSource
- InteractionManager
- KeyboardBindings
- LinearItem
- LiveDescriptors
- TreeCapabilities
- TreeChangeActions
- TreeChangeHandlers
- TreeConfiguration
- TreeContextProps
- TreeDataProvider
- TreeEnvironmentChangeActions
- TreeEnvironmentConfiguration
- TreeEnvironmentContextProps
- TreeEnvironmentRef
- TreeInformation
- TreeItem
- TreeItemActions
- TreeItemRenderContext
- TreeItemRenderFlags
- TreePosition
- TreeProps
- TreeRef
- TreeRenderProps
- TreeViewState
- UncontrolledTreeEnvironmentProps
Type Aliases
AllTreeRenderProps
Ƭ AllTreeRenderProps<T
, C
>: Required
<TreeRenderProps
<T
, C
>>
Type parameters
Name | Type |
---|---|
T | any |
C | extends string = never |
Defined in
DataSource
Ƭ DataSource<T
>: ExplicitDataSource
<T
> | ImplicitDataSource
<T
>
Type parameters
Name | Type |
---|---|
T | any |
Defined in
Disposable
Ƭ Disposable: Object
Type declaration
Name | Type |
---|---|
dispose | () => void |
Defined in
DraggingPosition
Ƭ DraggingPosition: DraggingPositionItem
| DraggingPositionBetweenItems
| DraggingPositionRoot
Defined in
HoveringPosition
Ƭ HoveringPosition: Object
Type declaration
Name | Type |
---|---|
indentation | number | undefined |
linearIndex | number |
offset | "bottom" | "top" | undefined |
Defined in
IndividualTreeViewState
Ƭ IndividualTreeViewState<C
>: { expandedItems?
: TreeItemIndex
[] ; focusedItem?
: TreeItemIndex
; selectedItems?
: TreeItemIndex
[] } & { [c in C]: TreeItemIndex | TreeItemIndex[] | undefined }
Type parameters
Name | Type |
---|---|
C | extends string = never |
Defined in
TreeChangeActionsContextProps
Ƭ TreeChangeActionsContextProps: TreeChangeActions
Defined in
TreeEnvironmentActionsContextProps
Ƭ TreeEnvironmentActionsContextProps: TreeEnvironmentChangeActions
Defined in
TreeItemIndex
Ƭ TreeItemIndex: string
| number
Defined in
Variables
INTERNALS
• Const
INTERNALS: Object
Type declaration
Name | Type |
---|---|
TreeItemChildren | (props : { children : TreeItemIndex [] ; depth : number ; parentId : TreeItemIndex }) => Element |
TreeItemElement | (props : { depth : number ; itemIndex : TreeItemIndex }) => Element |
Defined in
Functions
ControlledTreeEnvironment
▸ ControlledTreeEnvironment<T
, C
>(p
): ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Type parameters
Name | Type |
---|---|
T | any |
C | extends string = never |
Parameters
Name | Type |
---|---|
p | ControlledTreeEnvironmentProps <T , C > & { ref? : Ref <TreeEnvironmentRef <T , C >> } |
Returns
ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Defined in
controlledEnvironment/ControlledTreeEnvironment.tsx:56
Tree
▸ Tree<T
>(p
): ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
p | TreeProps <T , never > & { ref? : Ref <TreeRef <T >> } |
Returns
ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Defined in
UncontrolledTreeEnvironment
▸ UncontrolledTreeEnvironment<T
, C
>(p
): ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Type parameters
Name | Type |
---|---|
T | any |
C | extends string = never |
Parameters
Name | Type |
---|---|
p | UncontrolledTreeEnvironmentProps <T , C > & { ref? : Ref <TreeEnvironmentRef <T , C >> } |
Returns
ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Defined in
uncontrolledEnvironment/UncontrolledTreeEnvironment.tsx:240
createDefaultRenderers
▸ createDefaultRenderers(renderDepthOffset
, rtl?
): Required
<TreeRenderProps
<any
, never
>>
Parameters
Name | Type |
---|---|
renderDepthOffset | number |
rtl? | boolean |
Returns
Required
<TreeRenderProps
<any
, never
>>
Defined in
renderers/createDefaultRenderers.tsx:7
useControlledTreeEnvironmentProps
▸ useControlledTreeEnvironmentProps(__namedParameters
): TreeEnvironmentContextProps
<any
, never
>
Parameters
Name | Type |
---|---|
__namedParameters | ControlledTreeEnvironmentProps <any , never > |
Returns
TreeEnvironmentContextProps
<any
, never
>
Defined in
controlledEnvironment/useControlledTreeEnvironmentProps.ts:14
useTree
▸ useTree(): TreeContextProps
Returns
Defined in
useTreeEnvironment
▸ useTreeEnvironment(): TreeEnvironmentContextProps
<any
, never
>
Returns
TreeEnvironmentContextProps
<any
, never
>
Defined in
controlledEnvironment/ControlledTreeEnvironment.tsx:16
useTreeItemRenderContext
▸ useTreeItemRenderContext(item?
): undefined
| TreeItemRenderContext
<never
>
Parameters
Name | Type |
---|---|
item? | TreeItem <any > |
Returns
undefined
| TreeItemRenderContext
<never
>