# Example: Context Menu

Implementation of a context menu. Right-click a node and see what happens.
Also [space] key is supported to open the menu.
This example also demonstrates, how to copy or move branches and how to implement clipboard functionality.
A keyboard handler implements Cut, Copy, and Paste with `Ctrl-X`, `Ctrl-C`, `Ctrl-V`.

This sample uses the jQuery Context Menu Plugin by Rodney Rehm. Visit the project page at github for usage and more information.
NOTE: Please understand, that I am not able to support this plugin. There are many other context menus out there :-)

- item1 with key and tooltip
- item2: activated on init
- Folder with some children
  - Sub-item 3.1
  - Sub-item 3.2
- Document with some children (expanded on init)
  - Sub-item 4.1
  - Sub-item 4.2
- Lazy folder

Selected node: -

jquery.dynatree.js project home Link to this page Example Browser View source code