Skip to main content

Home > blockly > ComponentManager > removeCapability

ComponentManager.removeCapability() method

Removes a capability from an existing registered component.

Signature:

removeCapability<T>(id: string, capability: string | Capability<T>): void;

Parameters

ParameterTypeDescription
idstringThe ID of the component to remove the capability from.
capabilitystring | Capability<T>The capability to remove.

Returns:

void