Skip to main content

Function: getPlaygroundUrl()

getPlaygroundUrl(options): string

Gets the URL to a LiveCodes playground (as a string) from the provided options. This can be useful for providing links to run code in playgrounds.

Parameters

options: EmbedOptions = {}

The options for the playground.

Returns

string

  • The URL of the playground (as a string).

large objects like config and params are store in the url hash params while the rest are in the search params unless config is a string in which case it is stored in searchParams

Defined in

index.ts:391