Interface: AppConfig
_internal.AppConfig
These are properties that define how the app behaves.
Hierarchy
AppConfig↳
Config
Properties
allowLangChange
• allowLangChange: boolean
If false, the UI will not show the menu that allows changing editor language.
Default
true
Defined in
mode
• mode: "focus" | "full" | "result" | "editor" | "lite" | "simple" | "codeblock"
Sets the display mode.
Default
"full"
Defined in
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
tools
• tools: Partial<{ active: "" | "console" | "compiled" | "tests" ; enabled: "all" | ("console" | "compiled" | "tests")[] ; status: ToolsPaneStatus }>
Sets enabled and active tools and status of tools pane.
Default
{ enabled: "all", active: "", status: "" }
Example
{
"tools": {
"enabled": ["console", "compiled"],
"active": "console",
"status": "open"
}
}
Defined in
view
• Optional view: "split" | "result" | "editor"
Sets the default view for the playground.
Default
"split"
Defined in
zoom
• zoom: 0.25 | 0.5 | 1
Sets result page zoom level.