Function: init()
function init(
workspace,
numBlocksPerCategory?,
waitForFinishedLoading?
): void;
Defined in: index.js:188
Main entry point to initialize the suggested blocks categories.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
workspace | WorkspaceSvg | undefined | the workspace to load into |
numBlocksPerCategory? | number | 10 | how many blocks should be included per category. Defaults to 10. |
waitForFinishedLoading? | boolean | true | whether to wait until we hear the FINISHED_LOADING event before responding to BLOCK_CREATE events. Set to false if you disable events during initial load. Defaults to true. |
Returns
void