# 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 Cory S.N. LaViska. Visit A Beautiful Site for usage and more information.
NOTE: I had to patch Cory's code in order to make it work. Please understand, that I am not able to support this plugin. There are many other context menus out there :-)
Skin:

- Edit
- Cut
- Copy
- Paste
- Delete
- Quit

- 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.fancytree.js project home Link to this page Example Browser View source code