Skip to main content

Interface: AppConfig

These are properties that define how the app behaves.

Extended by​

Properties​

allowLangChange​

allowLangChange: boolean

If false, the UI will not show the menu that allows changing editor language.

Default​

true

Defined in​

src/sdk/models.ts:1084


disableHomeLink: boolean

If true, the link on LiveCodes logo ("Edit on LiveCodes") is disabled in embeds.

Default​

false

Defined in​

src/sdk/models.ts:1128


mode​

mode: "editor" | "result" | "full" | "focus" | "lite" | "simple" | "codeblock"

Sets the display mode.

Default​

"full"

Defined in​

src/sdk/models.ts:1096


readonly​

readonly: boolean

If true, editors are loaded in read-only mode, where the user is not allowed to change the code.

By default, when readonly is set to true, the light-weight code editor CodeJar is used. If you wish to use another editor, set the editor property.

Default​

false

Defined in​

src/sdk/models.ts:1078


tools​

tools: Partial<object>

Sets enabled and active tools and status of tools pane.

Type declaration​

active​

active: "" | ToolName

enabled​

enabled: (ToolName | "zoom")[] | "all"

status​

status: ToolsPaneStatus

Default​

{ enabled: "all", active: "", status: "" }

Example​

{
"tools": {
"enabled": ["console", "compiled"],
"active": "console",
"status": "open"
}
}

Defined in​

src/sdk/models.ts:1112


view?​

optional view: "split" | "editor" | "result"

Sets the default view for the playground.

Default​

"split"

Defined in​

src/sdk/models.ts:1090


zoom​

zoom: 0.25 | 0.5 | 1

Sets result page zoom level.

Defined in​

src/sdk/models.ts:1121