Options
All
  • Public
  • Public/Protected
  • All
Menu

A component in the current page.

Hierarchy

Index

Methods

  • Returns Component[]

    The direct children of the component.

  • getComponent<U>(...componentNames: string[]): undefined | U
  • getComponent(): Component
  • Looks up a nested component by a sequence of names (e.g. getComponent('main', 'banner')).

    Type Parameters

    Parameters

    • Rest ...componentNames: string[]

      Names of the component and its ancestors, from outermost to innermost.

    Returns undefined | U

    The matching component, or undefined if not found.

  • Returns the component itself when called with no arguments.

    Returns Component

  • getComponentById<U>(id: string): undefined | Component | U
  • Looks up a nested component by its id, searching the full subtree.

    Type Parameters

    Parameters

    • id: string

      The component id to find.

    Returns undefined | Component | U

    The matching component (typed as U), this component if the id matches, or undefined if not found.

  • getId(): string
  • Returns string

    The component id.

  • getModels<T>(): T
  • Type Parameters

    Returns T

    The map of the component models.

  • getName(): string
  • Returns string

    The name of the component.

  • getParameters<T>(): T
  • getProperties<T>(): T
  • alias

    getParameters

    Type Parameters

    Returns T

    The properties of the component.

  • getUrl(): undefined | string
  • Returns undefined | string

    The link to the partial component model.