2.0.2 • Published 1 year ago

vue2-simple-context-menu v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vue2-simple-context-menu

Description

This package is available for VueJS 2x

View The Examples

Installation

From NPM:

> npm i vue2-simple-context-menu

Browser

<script
  type="text/javascript"
  src="node_modules/vuejs/dist/vue.min.js"
></script>
<script
  type="text/javascript"
  src="node_modules/vue2-simple-context-menu/dist/vue2-simple-context-menu.min.js"
></script>
<script type="text/javascript">
  Vue.use(Vue2SimpleContextMenu);
</script>

Registration

Import and register the component

import Vue2SimpleContextMenu from "vue2-simple-context-menu";

// Global registration
Vue.use(Vue2SimpleContextMenu);

// OR

// Local registration
export default {
  components: {
    Vue2SimpleContextMenu,
  },
};

Usage

<h1 class="test" @contextmenu.prevent="$refs.ctxMenu.showMenu">
  Right click me
</h1>
<context-menu ref="ctxMenu">
  <span @click="something">Item 1</span>
  <span>Item 2</span>
</context-menu>

Contributing

PR's are welcome!

2.0.2

1 year ago

2.0.1

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago