Skip to main content

AsyncDataLoaderFeatureConfig <T>

Index

Properties

optionalcreateLoadingItemData

createLoadingItemData?: () => T

Will be called when HT retrieves item data for an item whose item data is asynchronously being loaded. Can be used to create placeholder data to use for rendering the tree item while it is loaded. If not defined, the tree item data will be null.


Type declaration

    • (): T
    • Returns T

optionalonLoadedChildren

onLoadedChildren?: (itemId: string, childrenIds: string[]) => void

Type declaration

    • (itemId: string, childrenIds: string[]): void
    • Parameters

      • itemId: string
      • childrenIds: string[]

      Returns void

optionalonLoadedItem

onLoadedItem?: (itemId: string, item: T) => void

Type declaration

    • (itemId: string, item: T): void
    • Parameters

      • itemId: string
      • item: T

      Returns void

rootItemId

rootItemId: string

optionalsetLoadingItemChildrens

setLoadingItemChildrens?: SetStateFn<string[]>

optionalsetLoadingItemData

setLoadingItemData?: SetStateFn<string[]>