Function: apply()
function apply(
name,
block,
isMutator
): void;
Defined in: packages/blockly/core/extensions.ts:139
Applies an extension method to a block. This should only be called during block construction.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The name of the extension. |
block | Block | The block to apply the named extension to. |
isMutator | boolean | True if this extension defines a mutator. |
Returns
void
Throws
if the extension is not found.