> For the complete documentation index, see [llms.txt](https://learn.squirrel365.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.squirrel365.io/squirrel-addon-documentation/squirrel-helper-library/angular/events/onsetruntimemode.md).

# onSetRuntimeMode

```typescript
override onSetRuntimeMode(mode: string): void {
  super.onSetRuntimeMode(mode);
}
```

Called when a setRuntimeMode event is received from Squirrel. This can occur when switching bewteen Design, Debug and Preview.

A list of the available runtime modes can be found [here](/squirrel-addon-documentation/squirrel-helper-library/angular/methods/getruntimemode.md)

If you super the base class onSetPosition method then it will add debug logs to your output
