Skip to main content

TreeFeatureItemInstance <T>

Index

Properties

collapse

collapse: () => void

Type declaration

    • (): void
    • Returns void

expand

expand: () => void

Type declaration

    • (): void
    • Returns void

getChildren

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

Type declaration

getId

getId: () => string

Type declaration

    • (): string
    • Returns string

getIndexInParent

getIndexInParent: () => number

Type declaration

    • (): number
    • Returns number

getItemAbove

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

Type declaration

getItemBelow

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

Type declaration

getItemData

getItemData: () => T

Type declaration

    • (): T
    • Returns T

getItemName

getItemName: () => string

Type declaration

    • (): string
    • Returns string

getMemoizedProp

getMemoizedProp: <X>(name: string, create: () => X, deps?: any[]) => X

Type declaration

    • <X>(name: string, create: () => X, deps?: any[]): X
    • Type parameters

      • X

      Parameters

      • name: string
      • create: () => X
      • optionaldeps: any[]

      Returns X

getParent

getParent: () => ItemInstance<T>

Type declaration

getProps

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

Type declaration

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

getTree

getTree: () => TreeInstance<T>

Type declaration

isExpanded

isExpanded: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

isFocused

isFocused: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

isFolder

isFolder: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

primaryAction

primaryAction: () => void

Type declaration

    • (): void
    • Returns void

scrollTo

scrollTo: (scrollIntoViewArg?: boolean | ScrollIntoViewOptions) => Promise<void>

Type declaration

    • (scrollIntoViewArg?: boolean | ScrollIntoViewOptions): Promise<void>
    • Parameters

      • optionalscrollIntoViewArg: boolean | ScrollIntoViewOptions

      Returns Promise<void>

setFocused

setFocused: () => void

Type declaration

    • (): void
    • Returns void