Interface: TreeCapabilities<T, C>
Type parameters
Name | Type |
---|---|
T | any |
C | extends string = never |
Hierarchy
TreeCapabilities
Properties
autoFocus
• Optional
autoFocus: boolean
Defined in
canDrag
• Optional
canDrag: (items
: TreeItem
<T
>[]) => boolean
Type declaration
▸ (items
): boolean
Parameters
Name | Type |
---|---|
items | TreeItem <T >[] |
Returns
boolean
Defined in
canDragAndDrop
• Optional
canDragAndDrop: boolean
Defined in
canDropAt
• Optional
canDropAt: (items
: TreeItem
<T
>[], target
: DraggingPosition
) => boolean
Type declaration
▸ (items
, target
): boolean
Parameters
Name | Type |
---|---|
items | TreeItem <T >[] |
target | DraggingPosition |
Returns
boolean
Defined in
canDropBelowOpenFolders
• Optional
canDropBelowOpenFolders: boolean
See Issue #148 or the sample at https://rct.lukasbach.com/storybook/?path=/story/core-basic-examples--single-tree?path=/story/core-drag-and-drop-configurability--can-drop-below-open-folders for details.
If enabled, dropping at the bottom of an open folder will drop the items in the parent folder below the hovered item instead of inside the folder at the top.
Defined in
canDropOnFolder
• Optional
canDropOnFolder: boolean
Defined in
canDropOnNonFolder
• Optional
canDropOnNonFolder: boolean
Defined in
canInvokePrimaryActionOnItemContainer
• Optional
canInvokePrimaryActionOnItemContainer: boolean
Defined in
canRename
• Optional
canRename: boolean
Defined in
canReorderItems
• Optional
canReorderItems: boolean
Defined in
canSearch
• Optional
canSearch: boolean
Defined in
canSearchByStartingTyping
• Optional
canSearchByStartingTyping: boolean
Defined in
defaultInteractionMode
• Optional
defaultInteractionMode: InteractionMode
| InteractionManager
<C
>
Defined in
disableArrowKeys
• Optional
disableArrowKeys: boolean
Defined in
doesSearchMatchItem
• Optional
doesSearchMatchItem: (search
: string
, item
: TreeItem
<T
>, itemTitle
: string
) => boolean
Type declaration
▸ (search
, item
, itemTitle
): boolean
Parameters
Name | Type |
---|---|
search | string |
item | TreeItem <T > |
itemTitle | string |
Returns
boolean
Defined in
shouldRenderChildren
• Optional
shouldRenderChildren: (item
: TreeItem
<T
>, context
: TreeItemRenderContext
<C
>) => boolean
Type declaration
▸ (item
, context
): boolean
Parameters
Name | Type |
---|---|
item | TreeItem <T > |
context | TreeItemRenderContext <C > |
Returns
boolean
Defined in
showLiveDescription
• Optional
showLiveDescription: boolean