This page shows how to use and configure right-click context menu with Handsontable:
Context Menu feature has a required dependency on jQuery contextMenu plugin (tested with version 1.5.25). This plugin is included in jquery.handsontable.full.js.
jQuery contextMenu plugin has optional dependency on jQuery UI Position, which makes sure that the menu is always visible in the viewport. This plugin is NOT included in jquery.handsontable.full.js. Please report in GitHub issues board if you wish it was added to jquery.handsontable.full.js.
<script src="lib/jQuery-contextMenu/jquery.contextMenu.js"></script>
<link rel="stylesheet" media="screen"
href="lib/jQuery-contextMenu/jquery.contextMenu.css">
<!-- optional -->
<script src="lib/jQuery-contextMenu/jquery.ui.position.js"></script>
For greatest configurability, you use contextMenu option as a configuration object as described in jQuery contextMenu documentation.
This example shows how to set custom text, how to disable "Remove row" and "Insert row above" for the first row and how to add your own option.
For more examples, head back to the main page.
Handsontable © 2012 Marcin Warpechowski and contributors.
Code and documentation
licensed under the The MIT License.