blockly > ComponentManager > getComponent
ComponentManager.getComponent() method
Gets the component with the given ID.
Signature:
getComponent(id: string): IComponent | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the component to get. |
Returns:
IComponent | undefined
The component with the given name or undefined if not found.