Stay organized with collections Save and categorize content based on your preferences.

blockly > ComponentManager > addComponent

ComponentManager.addComponent() method

Adds a component.

Signature:

addComponent(componentInfo: ComponentDatum, opt_allowOverrides?: boolean): void;

Parameters

Parameter Type Description
componentInfo ComponentDatum The data for the component to register.
opt_allowOverrides boolean (Optional) True to prevent an error when overriding an already registered item.

Returns:

void