Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Referencer

Helper class that sets and unsets references to components.

see

IReferenceable

see

IUnreferenceable

Hierarchy

  • Referencer

Index

Methods

Static setReferences

  • setReferences(references: IReferences, components: any[]): void
  • Sets references to multiple components.

    To set references components must implement IReferenceable interface. If they don't the call to this method has no effect.

    see

    IReferenceable

    Parameters

    • references: IReferences

      the references to be set.

    • components: any[]

      a list of components to set the references to.

    Returns void

Static setReferencesForOne

  • setReferencesForOne(references: IReferences, component: any): void
  • Sets references to specific component.

    To set references components must implement IReferenceable interface. If they don't the call to this method has no effect.

    see

    IReferenceable

    Parameters

    • references: IReferences

      the references to be set.

    • component: any

      the component to set references to.

    Returns void

Static unsetReferences

  • unsetReferences(components: any[]): void
  • Unsets references in multiple components.

    To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect.

    see

    IUnreferenceable

    Parameters

    • components: any[]

      the list of components, whose references must be cleared.

    Returns void

Static unsetReferencesForOne

  • unsetReferencesForOne(component: any): void
  • Unsets references in specific component.

    To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect.

    see

    IUnreferenceable

    Parameters

    • component: any

      the component to unset references.

    Returns void

Generated using TypeDoc