Registering Components
There are many ways to register new components in BlueRain:
App or Plugin
The easiest way to add a new component to BlueRain is to use the 'components' static property of you app or plugin:
Note that BlueRain uses 'setOrReplace' method on components registered through the components
static property of you app or plugin. This means that if there is an existing component of the same name, it will be replaced.
Using the set
method of ComponentRegistry
set
method of ComponentRegistryYou can add new Components anywhere in the code by calling the set
method of ComponentRegistry:
set
method will throw an error if some component is already registered on the given key. To avoid this you can use the setOrReplace
method instead.
Last updated