Skip to content

Commit 4b3e671

Browse files
author
Johnathan Barrett
committed
Updated readme
1 parent 44f43c4 commit 4b3e671

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
```HTML
99
<ContextMenu ref="contextMenu" :menu-items="menuItems"/>
1010

11-
<div class="context-menu-trigger"
11+
<div class="context-menu-trigger"
1212
@click.right.prevent="$refs.contextMenu.open($event)">
1313
Right Click Me!
1414
</div>
1515
```
1616

1717
```javascript
1818
import ContextMenu from 'vue-context-menu-popup'
19+
import 'vue-context-menu-popup/dist/vue-context-menu-popup.css';
1920

2021
export default {
2122
data() {
@@ -55,35 +56,35 @@ export default {
5556

5657
## API
5758

58-
### context-menu
59+
### context-menu
5960

6061
A simple context menu component
6162

6263
```html
6364
<ContextMenu :menu-items="[....]"/>
64-
```
65+
```
6566

66-
#### props
67+
#### props
6768

68-
- `menu-items` ***Array*** (*required*)
69+
- `menu-items` ***Array*** (*required*)
6970

70-
#### data
71+
#### data
7172

72-
- `visible`
73+
- `visible`
7374

74-
**initial value:** `false`
75+
**initial value:** `false`
7576

76-
- `contextMenuPosition`
77+
- `contextMenuPosition`
7778

78-
**initial value:** `[object Object]`
79+
**initial value:** `[object Object]`
7980

80-
#### methods
81+
#### methods
8182

82-
- `close()`
83+
- `close()`
8384

84-
- `open(position)`
85+
- `open(position)`
8586

86-
Accepts an Object with an `x, y` position or an instance of Event
87+
Accepts an Object with an `x, y` position or an instance of Event
8788

8889
## Installation
8990

0 commit comments

Comments
 (0)