So far, I was able to create a contextMenu that binds to a right mouse
cilck by including the javascript in a html file:
- var
Feature = {
- register_contextMenu
: function(){
-
$.contextMenu({
-
selector: '*',
-
items: {
- "item_one"
: {name: "Item_one", icon: "./path1"},
-
"item_two" : {name: "item_two", icon:
"./path2")
-
}
-
});
- }
- $(document).ready(Feature.register_contextMenu)
How would one go about displaying icons alongside the options?
How does one use CSS with contextMenu in this case?