Vue 2 context menu component. Version 1.5.11 is the latest stable release as of 2023, but the package has seen no updates since 2019. It provides customizable right-click context menus with support for icons, submenus, disabled items, and events. The component is mounted globally via Vue.use() and uses a data-driven approach. Alternatives include vue-context (more maintained) or custom implementations. It lacks TypeScript support and has limited documentation.
npm install vue-contextmenuNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: install, global registration, and a simple context menu with two options that trigger events.
Add 'menuName: 'your-menu-name' to your contextMenuData object.
Consider migrating to an alternative like 'vue-context' or 'vue-simple-context-menu'.
Always use <vue-context-menu> in templates.
Ensure that for fnHandler: 'savedata', you listen for @savedata in the template.
Bind :transferIndex to the current loop index and set it in the showMenu method.
Set axis: { x: null, y: null } in data.Import VueContextMenu from 'vue-contextmenu' and call Vue.use(VueContextMenu) before creating the Vue instance.
Use: import VueContextMenu from 'vue-contextmenu' (without curly braces).
No dependency data recorded yet.