TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/live-codes/livecodes/llms.txt
Use this file to discover all available pages before exploring further.
EmbedOptions interface defines the configuration options that can be passed to createPlayground() when embedding a LiveCodes playground.
Properties
appUrl
Allows loading the playground from a custom URL (e.g. a self-hosted app or a permanent URL).If supplied with an invalid URL, an error is thrown.
params
An object that represents the URL Query parameters, that can be used to configure the playground.These two snippets produce similar output:
config
A configuration object or a URL to a JSON file representing a configuration object to load.If supplied and is not an object or a valid URL, an error is thrown.See Config Interface for details.
headless
If
true, the playground is loaded in headless mode.See Getting Started for usage examples.import
A resource to import (from any of the supported sources).See Import documentation for supported sources.
lite
Deprecated: Use
{ config: { mode: "lite" } } instead.If true, the playground is loaded in lite mode.loading
Sets how the playground loads:
"eager": The playground loads immediately."lazy": A playground embedded low down in the page will not load until the user scrolls so that it approaches the viewport."click": The playground does not load automatically. Instead, a “Click-to-load” screen is shown.
template
A starter template to load.See Templates documentation for available templates.
"blank","javascript","typescript","react","vue","svelte","angular""python","python-wasm","ruby","go","php","cpp""markdown","astro","mdx"- And many more…
view
Deprecated: The
view option has been moved to config.view. For headless mode use headless: true.The default view for the playground.When set to "headless", the playground is loaded in headless mode.