Name: context-menu
Owner: Legitcode
Description: Replace the native right-click context menu with your own info
Created: 2015-09-09 01:57:50.0
Updated: 2016-10-20 19:17:02.0
Pushed: 2015-09-09 02:23:32.0
Homepage: http://legitcode.github.io/context-menu
Size: 664
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a react component for overwriting right-clicks in the browser and displaying your own custom menu.
npm install legit-context-menu
Take a look at the real example first
rt ContextMenu from 'legit-context-menu';
textMenu node={document.querySelector('h3')}>
<p>this will show when you right-click anywhere on the page</p>
ntextMenu>
onShow
: a function that will get the event from where the right click happenednode
: what parts of the page should the context menu work on? defaults to the whole page
That's it for now, will possibly add an option later that will allow the native right click to take place if the context menu is already active.