Skip to main content

Home > blockly > ComponentManager > getComponent

ComponentManager.getComponent() method

Gets the component with the given ID.

Signature:

getComponent(id: string): IComponent | undefined;

Parameters

ParameterTypeDescription
idstringThe ID of the component to get.

Returns:

IComponent | undefined

The component with the given name or undefined if not found.