TreeConfig <T>
Hierarchy
- TreeConfigType<T>
- TreeConfig
Index
Properties
- asyncDataLoader
- bottomLinePercentage
- canDrag
- canDrop
- canDropForeignDragObject
- canDropInbetween
- canRename
- createForeignDragObject
- createLoadingItemData
- dataLoader
- features
- getItemName
- hotkeys
- initialState
- instanceBuilder
- isItemDraggable
- isItemFolder
- isSearchMatchingItem
- onCloseSearch
- onCompleteForeignDrop
- onDrop
- onDropForeignDragObject
- onItemHotkey
- onLoadedChildren
- onLoadedItem
- onOpenSearch
- onPrimaryAction
- onRename
- onSearchMatchesItems
- onTreeHotkey
- rootItemId
- scrollToItem
- setDndState
- setExpandedItems
- setFocusedItem
- setLoadingItems
- setRenamingItem
- setRenamingValue
- setSearch
- setSelectedItems
- setState
- state
- topLinePercentage
Properties
optionalasyncDataLoader
optionalbottomLinePercentage
optionalcanDrag
Type declaration
Parameters
items: ItemInstance<T>[]
Returns boolean
optionalcanDrop
Type declaration
Parameters
items: ItemInstance<T>[]
target: DropTarget<T>
Returns boolean
optionalcanDropForeignDragObject
Type declaration
Parameters
dataTransfer: DataTransfer
target: DropTarget<T>
Returns boolean
optionalcanDropInbetween
optionalcanRename
Type declaration
Parameters
item: ItemInstance<T>
Returns boolean
optionalcreateForeignDragObject
Type declaration
Parameters
items: ItemInstance<T>[]
Returns { data: any; format: string }
data: any
format: string
optionalcreateLoadingItemData
Type declaration
Returns T
optionaldataLoader
optionalfeatures
getItemName
Type declaration
Parameters
item: ItemInstance<T>
Returns string
optionalhotkeys
optionalinitialState
optionalinstanceBuilder
optionalisItemDraggable
Type declaration
Parameters
item: ItemInstance<T>
Returns boolean
isItemFolder
Type declaration
Parameters
item: ItemInstance<T>
Returns boolean
optionalisSearchMatchingItem
Type declaration
Parameters
search: string
item: ItemInstance<T>
Returns boolean
optionalonCloseSearch
Type declaration
Returns void
optionalonCompleteForeignDrop
Type declaration
Parameters
items: ItemInstance<T>[]
Returns void
optionalonDrop
Type declaration
Parameters
items: ItemInstance<T>[]
target: DropTarget<T>
Returns void
optionalonDropForeignDragObject
Type declaration
Parameters
dataTransfer: DataTransfer
target: DropTarget<T>
Returns void
optionalonItemHotkey
Type declaration
Parameters
name: string
item: ItemInstance<T>
element: HTMLElement
Returns void
optionalonLoadedChildren
Type declaration
Parameters
itemId: string
childrenIds: string[]
Returns void
optionalonLoadedItem
Type declaration
Parameters
itemId: string
item: T
Returns void
optionalonOpenSearch
Type declaration
Returns void
optionalonPrimaryAction
Type declaration
Parameters
item: ItemInstance<T>
Returns void
optionalonRename
Type declaration
Parameters
item: ItemInstance<T>
value: string
Returns void
optionalonSearchMatchesItems
Type declaration
Parameters
search: string
items: ItemInstance<T>[]
Returns void
optionalonTreeHotkey
Type declaration
Parameters
name: string
element: HTMLElement
Returns void
rootItemId
optionalscrollToItem
Type declaration
Parameters
item: ItemInstance<T>
Returns void
Runs in the onDragEnd event, if
ev.dataTransfer.dropEffect
is notnone
, i.e. the drop was not aborted. No target is provided as parameter since the target may be a foreign drop target. This is useful to seperate out the logic to move dragged items out of their previous parents. UseonDrop
to handle drop-related logic.This ignores the
canDrop
handler, since the drop target is unknown in this handler.