2
0
mirror of https://github.com/tenrok/vue-context.git synced 2026-06-16 09:40:32 +03:00

Document event emitters

This commit is contained in:
Randall Wilk
2018-10-15 09:02:33 -05:00
parent 604aaa9c1d
commit 6dfbf4200c
+11 -4
View File
@@ -146,10 +146,17 @@ new Vue({
## Props ## Props
| Property | Type | Default | Description | Property | Type | Default | Description |
| -------- | ---- | ------- | ----------- | --- | --- | --- | --- |
| `closeOnClick` | Boolean | `true` | If set to false, context menu will not automatically close when clicked on. | `closeOnClick` | Boolean | `true` | If set to false, context menu will not automatically close when clicked on. |
| `closeOnScroll` | Boolean | `true` | If set to true, context menu will automatically close on window scroll. | `closeOnScroll` | Boolean | `true` | If set to true, context menu will automatically close on window scroll. |
## Events
| Event | Params | Description |
| --- | --- | --- |
| close | none | Emits when the context menu is closed |
| open | `event`, `data`, `top`, `left` | Emits when the menu is opened. The event, context menu data, top and left position are all sent through as parameters as well. |
## Credits ## Credits