ItemInstance <T>
Hierarchy
- ItemInstanceType<T>
- ItemInstance
Index
Properties
- canRename
- collapse
- collapseAll
- deselect
- expand
- expandAll
- getChildren
- getElement
- getId
- getIndexInParent
- getItemAbove
- getItemBelow
- getItemData
- getItemMeta
- getItemName
- getMemoizedProp
- getParent
- getProps
- getRenameInputProps
- getTree
- invalidateChildrenIds
- invalidateItemData
- isDraggingOver
- isDropTarget
- isDropTargetAbove
- isDropTargetBelow
- isExpanded
- isFocused
- isFolder
- isLoading
- isMatchingSearch
- isRenaming
- isSelected
- primaryAction
- registerElement
- scrollTo
- select
- selectUpTo
- setFocused
- toggleSelect
Properties
canRename
Type declaration
Returns boolean
collapse
Type declaration
Returns void
collapseAll
Type declaration
Returns void
deselect
Type declaration
Returns void
expand
Type declaration
Returns void
expandAll
Type declaration
Parameters
optionalcancelToken: { current: boolean }
Returns Promise<void>
getChildren
Type declaration
Returns ItemInstance<T>[]
getElement
Type declaration
Returns undefined | null | HTMLElement
getId
Type declaration
Returns string
getIndexInParent
Type declaration
Returns number
getItemAbove
Type declaration
Returns null | ItemInstance<T>
getItemBelow
Type declaration
Returns null | ItemInstance<T>
getItemData
Type declaration
Returns T
getItemMeta
Type declaration
Returns ItemMeta
getItemName
Type declaration
Returns string
getMemoizedProp
Type declaration
Type parameters
- X
Parameters
name: string
create: () => X
optionaldeps: any[]
Returns X
getParent
Type declaration
Returns ItemInstance<T>
getProps
Type declaration
Returns Record<string, any>
getRenameInputProps
Type declaration
Returns any
getTree
Type declaration
Returns TreeInstance<T>
invalidateChildrenIds
Type declaration
Returns void
invalidateItemData
Type declaration
Returns void
isDraggingOver
Type declaration
Returns boolean
isDropTarget
Type declaration
Returns boolean
isDropTargetAbove
Type declaration
Returns boolean
isDropTargetBelow
Type declaration
Returns boolean
isExpanded
Type declaration
Returns boolean
isFocused
Type declaration
Returns boolean
isFolder
Type declaration
Returns boolean
isLoading
isMatchingSearch
Type declaration
Returns boolean
isRenaming
Type declaration
Returns boolean
isSelected
Type declaration
Returns boolean
primaryAction
Type declaration
Returns void
registerElement
Type declaration
Parameters
element: null | HTMLElement
Returns void
scrollTo
Type declaration
Parameters
optionalscrollIntoViewArg: boolean | ScrollIntoViewOptions
Returns Promise<void>
select
Type declaration
Returns void
selectUpTo
Type declaration
Parameters
ctrl: boolean
Returns void
setFocused
Type declaration
Returns void
toggleSelect
Type declaration
Returns void