Vue 2 context menu component with native implementation and zero dependencies. Latest version 1.4.11 (last updated 2023). Provides a simple API via `$contextmenu` to display right-click menus with nested items, icons, disabled states, and custom styling. Key differentiator: purely Vue-based, no external dependencies like Popper.js, and supports CDN usage. Suitable for Vue 2 projects needing a lightweight, customizable context menu.
npm install vue-contextmenujsVerified import paths — ran on the pinned version, not inferred.
Shows how to install, register the plugin, and create a context menu with nested items, icons, disabled state, and custom styling.
Use vue3-contextmenujs or another Vue 3 compatible library.
Always pass the native 'event' object from @contextmenu handler, or provide explicit 'x' and 'y' coordinates.
Consider migrating to actively maintained alternatives if needed.
Ensure Vue.use(Contextmenu) is executed before creating any Vue instance.
Only call $contextmenu.destroy() after a menu has been displayed, or check existence: if (this.$contextmenu) this.$contextmenu.destroy();
No dependency data recorded yet.