Function: inject()
function inject(container, opt_options?): WorkspaceSvg;
Defined in: packages/blockly/core/inject.ts:34
Inject a Blockly editor into the specified container element (usually a div).
Parameters
| Parameter | Type | Description |
|---|---|---|
container | string | Element | Containing element, or its ID, or a CSS selector. |
opt_options? | BlocklyOptions | Optional dictionary of options. |
Returns
Newly created main workspace.