Basic Menu
To create a basic context menu use $.contextMenu()
and the add your target with
{selector: "myId"}
and then create your items for menu with
{items:{"name" : "item 1"}}
Left Click
To create a context menu which pops up on left click use {trigger : "left"}
.
Submenu
You can create context menu with sub menus by using {fold}
and adding menu items inside of it.
Hover
To create a context menu which pops on hover use {trigger : true}