Skip to main content
Version: 2.13

registerBrick()

function registerBrick(
tag,
brick, ...
args): 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​

ParameterTypeDescription
tagstringthe brick unique id
brick() => Brickthe brick class
...argsanyExtra arguments

Returns​

void