Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Reference

Contains a reference to a component and locator to find it. It is used by References to store registered component references.

Hierarchy

  • Reference

Index

Constructors

Methods

Constructors

constructor

  • new Reference(locator: any, component: any): Reference
  • Create a new instance of the reference object and assigns its values.

    Parameters

    • locator: any

      a locator to find the reference.

    • component: any

    Returns Reference

Methods

getComponent

  • getComponent(): any
  • Gets the stored component reference.

    Returns any

    the component's references.

getLocator

  • getLocator(): any
  • Gets the stored component locator.

    Returns any

    the component's locator.

match

  • match(locator: any): boolean
  • Matches locator to this reference locator.

    Descriptors are matched using equal method. All other locator types are matched using direct comparison.

    see

    Descriptor

    Parameters

    • locator: any

      the locator to match.

    Returns boolean

    true if locators are matching and false it they don't.

Generated using TypeDoc