Skip to main content
Version: 2.4

registerBrick

Callable

  • registerBrick(tag: string, brick: new () => Brick, ...args: any): any

  • Static function that must be called for every brick used in an application. It registers the brick code in the registry with the specified tag and return the Entry for that brick.


    Parameters

    • tag: string

      the brick unique id

    • brick: new () => Brick

      the brick class

    • rest...args: any

      Extra arguments

    Returns any