Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/dev-toolbar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The dev toolbar aims to provide a quick and easy way to catch common issues duri

### Settings

The Settings app allows you to toggle different settings for the development toolbar, such as verbose logging, and the ability to disable notifications.
The Settings app allows you to configure options for the development toolbar, such as verbose logging, disabling notifications, and adjusting its placement on your screen.

## Extending the dev toolbar

Expand Down
15 changes: 15 additions & 0 deletions src/content/docs/en/reference/dev-toolbar-app-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,21 @@ This event is fired when the user clicks on the app icon in the Dev Toolbar.
}
```

### `placement-updated`

This event is fired when the user changes the placement of the Dev Toolbar.

```ts title="src/my-app.js" {4-6}
export default {
// ...
init(canvas, eventTarget) {
eventTarget.addEventListener('placement-updated', (event) => {
console.log(`Placement set to ${event.detail.placement}`);
})
}
}
```

#### `state: boolean`

Indicates whether or not the app is enabled after the user's click.
Expand Down