Object representing an item of a context menu

Hierarchy (view full)

Constructors

  • Parameters

    • locators: VSCodeLocatorMap
    • base: ChainablePromiseElement<Element>
    • parentMenu: Menu<{
          contextView: string;
          elem: string;
          itemConstructor: ((label) => string);
          itemElement: string;
          itemLabel: string;
          itemNesting: string;
          itemText: string;
          viewBlock: string;
      }>

    Returns ContextMenuItem

Properties

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

Type declaration

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

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

      Returns ChainablePromiseElement<Element>

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

Type declaration

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

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

      Returns ChainablePromiseArray<Element[]>

itemElement$: ChainablePromiseElement<Element>
itemElement$$: ChainablePromiseArray<Element[]>
itemLabel$: ChainablePromiseElement<Element>
itemLabel$$: ChainablePromiseArray<Element[]>
itemNesting$: ChainablePromiseElement<Element>
itemNesting$$: ChainablePromiseArray<Element[]>
itemText$: ChainablePromiseElement<Element>
itemText$$: ChainablePromiseArray<Element[]>
label: string = ''
parentMenu: Menu<{
    contextView: string;
    elem: string;
    itemConstructor: ((label) => string);
    itemElement: string;
    itemLabel: string;
    itemNesting: string;
    itemText: string;
    viewBlock: string;
}>

Type declaration

  • contextView: string
  • elem: string
  • itemConstructor: ((label) => string)
      • (label): string
      • Parameters

        • label: string

        Returns string

  • itemElement: string
  • itemLabel: string
  • itemNesting: string
  • itemText: string
  • viewBlock: string
viewBlock$: ChainablePromiseElement<Element>
viewBlock$$: 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

  • Return the Menu object representing the menu this item belongs to Todo: fix this

    Returns Menu<{
        contextView: string;
        elem: string;
        itemConstructor: ((label) => string);
        itemElement: string;
        itemLabel: string;
        itemNesting: string;
        itemText: string;
        viewBlock: string;
    }>

Generated using TypeDoc