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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user