Class ViewSectionAbstract

Page object representing a collapsible content section of the side bar view

Hierarchy (view full)

Constructors

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[]>

actions$: ChainablePromiseElement<Element>
actions$$: ChainablePromiseArray<Element[]>
button$: ChainablePromiseElement<Element>
button$$: ChainablePromiseArray<Element[]>
buttonLabel$: ChainablePromiseElement<Element>
buttonLabel$$: ChainablePromiseArray<Element[]>
content: ViewContent
header$: ChainablePromiseElement<Element>
header$$: ChainablePromiseArray<Element[]>
headerExpanded$: ChainablePromiseElement<Element>
headerExpanded$$: ChainablePromiseArray<Element[]>
index$: ChainablePromiseElement<Element>
index$$: ChainablePromiseArray<Element[]>
itemLabel$: ChainablePromiseElement<Element>
itemLabel$$: ChainablePromiseArray<Element[]>
itemRow$: ChainablePromiseElement<Element>
itemRow$$: ChainablePromiseArray<Element[]>
items$: ChainablePromiseElement<Element>
items$$: ChainablePromiseArray<Element[]>
lastRow$: ChainablePromiseElement<Element>
lastRow$$: ChainablePromiseArray<Element[]>
level$: ChainablePromiseElement<Element>
level$$: ChainablePromiseArray<Element[]>
rowContainer$: ChainablePromiseElement<Element>
rowContainer$$: ChainablePromiseArray<Element[]>
rowWithLabel$: ((...args) => ChainablePromiseElement<Element>)

Type declaration

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

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

      Returns ChainablePromiseElement<Element>

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

Type declaration

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

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

      Returns ChainablePromiseArray<Element[]>

searchBox$: ChainablePromiseElement<Element>
searchBox$$: ChainablePromiseArray<Element[]>
textContainer$: ChainablePromiseElement<Element>
textContainer$$: ChainablePromiseArray<Element[]>
textField$: ChainablePromiseElement<Element>
textField$$: ChainablePromiseArray<Element[]>
title$: ChainablePromiseElement<Element>
title$$: ChainablePromiseArray<Element[]>
titleText$: ChainablePromiseElement<Element>
titleText$$: 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 an item in this view section by label. Does not perform recursive search through the whole tree. Does however scroll through all the expanded content. Will find items beyond the current scroll range.

    Parameters

    • label: string

      Label of the item to search for.

    • Optional maxLevel: number

      Limit how deep the algorithm should look into any expanded items, default unlimited (0)

    Returns Promise<undefined | ViewItem>

    Promise resolving to ViewItem object is such item exists, undefined otherwise

  • Retrieve all items currently visible in the view section. Note that any item currently beyond the visible list, i.e. not scrolled to, will not be retrieved.

    Returns Promise<ViewItem[]>

    Promise resolving to array of ViewItem objects

  • Open an item with a given path represented by a sequence of labels

    e.g to open 'file' inside 'folder', call openItem('folder', 'file')

    The first item is only searched for directly within the root element (depth 1). The label sequence is handled in order. If a leaf item (a file for example) is found in the middle of the sequence, the rest is ignored.

    If the item structure is flat, use the item's title to search by.

    Parameters

    • Rest ...path: string[]

      Sequence of labels that make up the path to a given item.

    Returns Promise<ViewItem[]>

    Promise resolving to array of ViewItem objects representing the last item's children. If the last item is a leaf, empty array is returned.

  • 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<ViewSection>

    thenable self reference

Generated using TypeDoc