Class TreeItemAbstract

TreeItem abstract class

Hierarchy (view full)

Properties

actionConstructor$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

    • (...args): ChainablePromiseElement<Element>
    • Parameters

      • Rest ...args: []

      Returns ChainablePromiseElement<Element>

actionConstructor$$: ((...args) => ChainablePromiseArray<Element[]>)

Type declaration

    • (...args): ChainablePromiseArray<Element[]>
    • Parameters

      • Rest ...args: []

      Returns ChainablePromiseArray<Element[]>

actionLabel$: ChainablePromiseElement<Element>
actionLabel$$: ChainablePromiseArray<Element[]>
actionTitle$: ChainablePromiseElement<Element>
actionTitle$$: ChainablePromiseArray<Element[]>
actions$: ChainablePromiseElement<Element>
actions$$: ChainablePromiseArray<Element[]>
author$: ChainablePromiseElement<Element>
author$$: ChainablePromiseArray<Element[]>
button$: ChainablePromiseElement<Element>
button$$: ChainablePromiseArray<Element[]>
buttonLabel$: ChainablePromiseElement<Element>
buttonLabel$$: ChainablePromiseArray<Element[]>
ctor$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

    • (...args): ChainablePromiseElement<Element>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseElement<Element>

ctor$$: ((...args) => ChainablePromiseArray<Element[]>)

Type declaration

    • (...args): ChainablePromiseArray<Element[]>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseArray<Element[]>

description$: ChainablePromiseElement<Element>
description$$: ChainablePromiseArray<Element[]>
elem$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

    • (...args): ChainablePromiseElement<Element>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseElement<Element>

elem$$: ((...args) => ChainablePromiseArray<Element[]>)

Type declaration

    • (...args): ChainablePromiseArray<Element[]>
    • Parameters

      • Rest ...args: [label: string]

      Returns ChainablePromiseArray<Element[]>

expandedAttr$: ChainablePromiseElement<Element>
expandedAttr$$: ChainablePromiseArray<Element[]>
expandedValue$: ChainablePromiseElement<Element>
expandedValue$$: ChainablePromiseArray<Element[]>
header$: ChainablePromiseElement<Element>
header$$: ChainablePromiseArray<Element[]>
headerExpanded$: ChainablePromiseElement<Element>
headerExpanded$$: ChainablePromiseArray<Element[]>
index$: ChainablePromiseElement<Element>
index$$: ChainablePromiseArray<Element[]>
install$: ChainablePromiseElement<Element>
install$$: ChainablePromiseArray<Element[]>
itemTitle$: ChainablePromiseElement<Element>
itemTitle$$: ChainablePromiseArray<Element[]>
level$: ChainablePromiseElement<Element>
level$$: ChainablePromiseArray<Element[]>
manage$: ChainablePromiseElement<Element>
manage$$: ChainablePromiseArray<Element[]>
title$: ChainablePromiseElement<Element>
title$$: ChainablePromiseArray<Element[]>
titleText$: ChainablePromiseElement<Element>
titleText$$: ChainablePromiseArray<Element[]>
tooltip$: ChainablePromiseElement<Element>
tooltip$$: ChainablePromiseArray<Element[]>
tooltipAttribute$: ChainablePromiseElement<Element>
tooltipAttribute$$: ChainablePromiseArray<Element[]>
twistie$: ChainablePromiseElement<Element>
twistie$$: ChainablePromiseArray<Element[]>
version$: ChainablePromiseElement<Element>
version$$: ChainablePromiseArray<Element[]>
welcomeContent$: ChainablePromiseElement<Element>
welcomeContent$$: ChainablePromiseArray<Element[]>

Accessors

  • get elem(): ChainablePromiseElement<Element>
  • Base element of given page object

    Returns ChainablePromiseElement<Element>

  • get parent(): ChainablePromiseElement<Element>
  • Parent element of given page object

    Returns ChainablePromiseElement<Element>

Methods

  • Find a child item with the given name

    Parameters

    • name: string

    Returns Promise<undefined | TreeItem>

    Promise resolving to TreeItem object if the child item exists, undefined otherwise

  • Find children of an item, will try to expand the item in the process

    Returns Promise<TreeItem[]>

    Promise resolving to array of TreeItem objects, empty array if item has no children

  • Retrieves the description of this TreeItem.

    Returns Promise<undefined | string>

    A promise resolving to the tooltip or undefined if the TreeItem has no description.

  • Retrieves the tooltip of this TreeItem.

    Returns Promise<undefined | string>

    A promise resolving to the tooltip or undefined if the TreeItem has no tooltip.

  • Finds if the item has children by actually counting the child items Note that this will expand the item if it was collapsed

    Returns Promise<boolean>

    Promise resolving to true/false

  • Finds if the item is expandable/collapsible

    Returns Promise<boolean>

    Promise resolving to true/false

  • Finds whether the item is expanded. Always returns false if item has no children.

    Returns Promise<boolean>

    Promise resolving to true/false

  • Poll for the element to become visible

    Parameters

    • timeout: number = 10000

      custom timeout for the wait

    • interval: number = 2000

      custom interval to control polling

    Returns Promise<TreeItem>

    thenable self reference

  • Select the item in the view. Note that selecting the item will toggle its expand state when applicable.

    Returns Promise<void>

    Promise resolving when the item has been clicked

Generated using TypeDoc