Skip to main content

livecodes

Modules

Interfaces

Functions

createPlayground

createPlayground(container, options?): Promise<Playground>

Creates a LiveCodes playground.

Parameters

NameTypeDescription
containerstring | HTMLElementThe container where the playground will be rendered.
options?EmbedOptionsThe embed options for the playground (optional).

Returns

Promise<Playground>

  • A promise that resolves to the created playground.

Defined in

index.ts:23

createPlayground(options): Promise<Playground>

Parameters

NameType
optionsEmbedOptions & { view: "headless" }

Returns

Promise<Playground>

Defined in

index.ts:27