Skip to content

Commit

Permalink
Add documentation for context menu slot
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat committed Jan 2, 2024
1 parent 476fb0e commit 5c6ca76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/visual-editor/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ For this, the editor provides the following slots:
- `select` (type: `() => void`) callback for node being selected
- `sidebar` [(default component)](https://github.com/newcat/baklavajs/blob/master/packages/renderer-vue/src/sidebar/Sidebar.vue)
- `minimap` [(default component)](https://github.com/newcat/baklavajs/blob/master/packages/renderer-vue/src/components/Minimap.vue)
- `contextMenu` [(default component)](https://github.com/newcat/baklavajs/blob/master/packages/renderer-vue/src/components/ContextMenu.vue)
- Props:
- `contextMenu` (type: return value of [`useContextMenu`](https://github.com/newcat/baklavajs/blob/master/packages/renderer-vue/src/contextMenu.ts))

There are other components that provide slots as well:

Expand Down

0 comments on commit 5c6ca76

Please sign in to comment.