Class UmbExtensionRegistry<IncomingManifestTypes, ManifestTypes>

Type Parameters

Constructors

Properties

MANIFEST_TYPES: ManifestTypes = ...
extensions: Observable<ManifestTypes[]> = ...

Methods

  • Get an observable of extensions by type and a given filter method. This will return the all extensions that matches the type and which filter method returns true. The filter method will be called for each extension manifest of the given type, and the first argument to it is the extension manifest.

    Type Parameters

    Parameters

    • type: Key

      {string} - The type of the extension to get

    • filter: ((ext: T) => boolean)

      {(ext: T): void} - The filter method to use to filter the extensions

        • (ext): boolean
        • Parameters

          • ext: T

          Returns boolean

    Returns Observable<T[]>

    • An observable of the extensions that matches the type and filter method
  • Get an observable of extensions by types and a given filter method. This will return the all extensions that matches the types and which filter method returns true. The filter method will be called for each extension manifest of the given types, and the first argument to it is the extension manifest.

    Type Parameters

    Parameters

    • types: string[]

      {Array} - The types of the extensions to get.

    • filter: ((ext: ExtensionTypes) => boolean)

      {(ext: T): void} - The filter method to use to filter the extensions

    Returns Observable<ExtensionTypes[]>

    • An observable of the extensions that matches the type and filter method
  • Get an extension that matches the given alias, this will not return an observable, it is a one of retrieval if it exists at the given point in time.

    Type Parameters

    Parameters

    • alias: string

      {string} - The alias of the extension to get.

    Returns undefined | T

    • The extension manifest that matches the alias.
""