Skip to main content

TreeFeatureItemInstance <T>

Index

Properties

collapse

collapse: () => void

Type declaration

    • (): void
    • Returns void

equals

equals: (other?: null | ItemInstance<any>) => boolean

Type declaration

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: () => undefined | ItemInstance<T>

Type declaration

getItemBelow

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

Type declaration

getItemData

getItemData: () => T

Type declaration

    • (): T
    • Returns T

getItemName

getItemName: () => string

Type declaration

    • (): string
    • Returns string

getParent

getParent: () => undefined | ItemInstance<T>

Type declaration

getProps

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

Type declaration

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

getTree

getTree: () => TreeInstance<T>

Type declaration

isDescendentOf

isDescendentOf: (parentId: string) => boolean

Type declaration

    • (parentId: string): boolean
    • Parameters

      • parentId: string

      Returns boolean

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