Skip to main content
Version: 2.8

registerBrick

Callable

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

  • 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 void