Skip to main content

TreeInstance <T>

Hierarchy

  • TreeInstanceType<T>
    • TreeInstance

Index

Properties

abortRenaming

abortRenaming: () => void

Type declaration

    • (): void
    • Returns void

closeSearch

closeSearch: () => void

Type declaration

    • (): void
    • Returns void

collapseAll

collapseAll: () => void

Type declaration

    • (): void
    • Returns void

collapseItem

collapseItem: (itemId: string) => void

Type declaration

    • (itemId: string): void
    • Parameters

      • itemId: string

      Returns void

completeRenaming

completeRenaming: () => void

Type declaration

    • (): void
    • Returns void

expandAll

expandAll: (cancelToken?: { current: boolean }) => Promise<void>

Type declaration

    • (cancelToken?: { current: boolean }): Promise<void>
    • Parameters

      • optionalcancelToken: { current: boolean }

      Returns Promise<void>

expandItem

expandItem: (itemId: string) => void

Type declaration

    • (itemId: string): void
    • Parameters

      • itemId: string

      Returns void

focusItem

focusItem: (itemId: string) => void

Type declaration

    • (itemId: string): void
    • Parameters

      • itemId: string

      Returns void

focusNextItem

focusNextItem: () => void

Type declaration

    • (): void
    • Returns void

focusPreviousItem

focusPreviousItem: () => void

Type declaration

    • (): void
    • Returns void

getConfig

getConfig: () => TreeConfig<any>

Type declaration

getContainerProps

getContainerProps: () => Record<string, any>

Type declaration

    • (): Record<string, any>
    • Returns Record<string, any>

getDragLineData

getDragLineData: () => null | DragLineData

Type declaration

getDropTarget

getDropTarget: () => null | DropTarget<T>

Type declaration

getElement

getElement: () => undefined | null | HTMLElement

Type declaration

    • (): undefined | null | HTMLElement
    • Returns undefined | null | HTMLElement

getFocusedItem

getFocusedItem: () => ItemInstance<any>

Type declaration

getHotkeyPresets

getHotkeyPresets: () => HotkeysConfig<any>

Type declaration

getItemInstance

getItemInstance: (itemId: string) => ItemInstance<any>

Type declaration

getItems

getItems: () => ItemInstance<any>[]

Type declaration

getRenamingItem

getRenamingItem: () => null | ItemInstance<T>

Type declaration

getRenamingValue

getRenamingValue: () => string

Type declaration

    • (): string
    • Returns string

getSearchInputElement

getSearchInputElement: () => null | HTMLInputElement

Type declaration

    • (): null | HTMLInputElement
    • Returns null | HTMLInputElement

getSearchInputElementProps

getSearchInputElementProps: () => any

Type declaration

    • (): any
    • Returns any

getSearchMatchingItems

getSearchMatchingItems: () => ItemInstance<T>[]

Type declaration

getSearchValue

getSearchValue: () => string

Type declaration

    • (): string
    • Returns string

getSelectedItems

getSelectedItems: () => ItemInstance<T>[]

Type declaration

getState

getState: () => TreeState<any>

Type declaration

invalidateChildrenIds

invalidateChildrenIds: (itemId: string) => void

Type declaration

    • (itemId: string): void
    • Parameters

      • itemId: string

      Returns void

invalidateItemData

invalidateItemData: (itemId: string) => void

Invalidate fetched data for item, and triggers a refetch and subsequent rerender if the item is visible


Type declaration

    • (itemId: string): void
    • Parameters

      • itemId: string

      Returns void

isItemExpanded

isItemExpanded: (itemId: string) => boolean

Type declaration

    • (itemId: string): boolean
    • Parameters

      • itemId: string

      Returns boolean

isRenamingItem

isRenamingItem: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

isSearchOpen

isSearchOpen: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

openSearch

openSearch: (initialValue?: string) => void

Type declaration

    • (initialValue?: string): void
    • Parameters

      • optionalinitialValue: string

      Returns void

rebuildTree

rebuildTree: () => void

Type declaration

    • (): void
    • Returns void

registerElement

registerElement: (element: null | HTMLElement) => void

Type declaration

    • (element: null | HTMLElement): void
    • Parameters

      • element: null | HTMLElement

      Returns void

registerSearchInputElement

registerSearchInputElement: (element: null | HTMLInputElement) => void

Type declaration

    • (element: null | HTMLInputElement): void
    • Parameters

      • element: null | HTMLInputElement

      Returns void

retrieveChildrenIds

retrieveChildrenIds: (itemId: string) => string[]

Type declaration

    • (itemId: string): string[]
    • Parameters

      • itemId: string

      Returns string[]

retrieveItemData

retrieveItemData: (itemId: string) => T

Type declaration

    • (itemId: string): T
    • Parameters

      • itemId: string

      Returns T

setConfig

setConfig: SetStateFn<TreeConfig<any>>

setSearch

setSearch: (search: null | string) => void

Type declaration

    • (search: null | string): void
    • Parameters

      • search: null | string

      Returns void

setSelectedItems

setSelectedItems: (selectedItems: string[]) => void

Type declaration

    • (selectedItems: string[]): void
    • Parameters

      • selectedItems: string[]

      Returns void

setState

setState: SetStateFn<TreeState<any>>

startRenamingItem

startRenamingItem: (itemId: string) => void

Type declaration

    • (itemId: string): void
    • Parameters

      • itemId: string

      Returns void

updateDomFocus

updateDomFocus: () => void

Type declaration

    • (): void
    • Returns void