138 lines
2.1 KiB
Markdown
138 lines
2.1 KiB
Markdown
# Interface: AppConfig
|
|
|
|
These are properties that define how the app behaves.
|
|
|
|
## Extended by
|
|
|
|
- [`Config`](../../interfaces/Config.md)
|
|
|
|
## Properties
|
|
|
|
### allowLangChange
|
|
|
|
> **allowLangChange**: `boolean`
|
|
|
|
If `false`, the UI will not show the menu that allows changing editor language.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
true
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:603
|
|
|
|
***
|
|
|
|
### mode
|
|
|
|
> **mode**: `"focus"` \| `"full"` \| `"result"` \| `"editor"` \| `"lite"` \| `"simple"` \| `"codeblock"`
|
|
|
|
Sets the [display mode](https://livecodes.io/docs/features/display-modes).
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
"full"
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:615
|
|
|
|
***
|
|
|
|
### 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](https://livecodes.io/docs/features/editor-settings#code-editor) is used.
|
|
If you wish to use another editor, set the [editor](https://livecodes.io/docs/configuration/configuration-object#editor) property.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
false
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:597
|
|
|
|
***
|
|
|
|
### tools
|
|
|
|
> **tools**: `Partial`\<`object`\>
|
|
|
|
Sets enabled and active tools and status of [tools pane](https://livecodes.io/docs/features/tools-pane).
|
|
|
|
#### Type declaration
|
|
|
|
##### active
|
|
|
|
> **active**: `""` \| `"console"` \| `"compiled"` \| `"tests"`
|
|
|
|
##### enabled
|
|
|
|
> **enabled**: `"all"` \| (`"console"` \| `"compiled"` \| `"tests"`)[]
|
|
|
|
##### status
|
|
|
|
> **status**: [`ToolsPaneStatus`](../type-aliases/ToolsPaneStatus.md)
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
{ enabled: "all", active: "", status: "" }
|
|
```
|
|
|
|
#### Example
|
|
|
|
```js
|
|
{
|
|
"tools": {
|
|
"enabled": ["console", "compiled"],
|
|
"active": "console",
|
|
"status": "open"
|
|
}
|
|
}
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:631
|
|
|
|
***
|
|
|
|
### view?
|
|
|
|
> `optional` **view**: `"split"` \| `"result"` \| `"editor"`
|
|
|
|
Sets the [default view](https://livecodes.io/docs/features/default-view) for the playground.
|
|
|
|
#### Default
|
|
|
|
```ts
|
|
"split"
|
|
```
|
|
|
|
#### Defined in
|
|
|
|
models.ts:609
|
|
|
|
***
|
|
|
|
### zoom
|
|
|
|
> **zoom**: `0.25` \| `0.5` \| `1`
|
|
|
|
Sets result page [zoom level](https://livecodes.io/docs/features/result#result-page-zoom).
|
|
|
|
#### Defined in
|
|
|
|
models.ts:640 |