# vue-context-menu

> vue context-menu component

Latest version **2.0.6** (published 2017-07-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-context-menu
pnpm add vue-context-menu
yarn add vue-context-menu
bun add vue-context-menu
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2017-07-31 |
| First published | 2016-07-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 291 |
| Author | Vin Maimone |
| Maintainers | vmaimone |
| Keywords | component, vue, context, menu |

## Links

- npm: https://www.npmjs.com/package/vue-context-menu
- Repository: https://github.com/vmaimone/vue-context-menu
- Homepage: https://github.com/vmaimone/vue-context-menu#readme
- Issues: https://github.com/vmaimone/vue-context-menu/issues
- npm.io page: https://npm.io/package/vue-context-menu

## Recent versions

- 2.0.6 (latest) — 2017-07-31
- 2.0.5 — 2017-07-30
- 2.0.4 — 2017-07-03
- 2.0.3 — 2017-07-02
- 2.0.2 — 2017-02-19
- 2.0.1 — 2017-02-19
- 2.0.0 — 2017-02-19
- 0.0.14 — 2016-08-31
- 0.0.13 — 2016-08-31
- 0.0.12 — 2016-07-17
- 0.0.11 — 2016-07-17
- 0.0.10 — 2016-07-16
- 0.0.9 — 2016-07-16
- 0.0.8 — 2016-07-16
- 0.0.7 — 2016-07-11
- … 6 more at https://npm.io/package/vue-context-menu/versions

## README

# vue-context-menu

> vue context-menu component

Demo: https://vmaimone.github.io/vue-context-menu

# Example Usage
```

<div @contextmenu.prevent="$refs.ctxMenu.open">
  ...
</div>

<context-menu id="context-menu" ref="ctxMenu">
  <li @click="doSomething(...)">option 1</li>
  <li class="disabled">option 2</li>
  <li>option 3</li>
</context-menu>

<script>
import contextMenu from 'vue-context-menu'
export default {
  name: 'my-component',
  components: { contextMenu },
  methods: { doSomething }
  ...
}
</script>
```

# Build Setup

```
# install dependencies
npm install

# compiles src/*.vue and builds a bundle for static linking
npm run build

# runs Karma with test/*.js
npm run test

# runs webpack-dev-server
npm run dev
```
## Vue 1.x Support
Haven't migrated to Vue 2.x yet?

`npm install vue-context-menu@0.0.13`

---
_Source: https://npm.io/package/vue-context-menu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
