Skip to main content

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

ParameterTypeDescription
containerstring | ElementContaining element, or its ID, or a CSS selector.
opt_options?BlocklyOptionsOptional dictionary of options.

Returns

WorkspaceSvg

Newly created main workspace.