Defining icons in the contextMenu plugin

Defining icons in the contextMenu plugin

So far, I was able to create a contextMenu that binds to a right mouse cilck by including the javascript in a html file:

  1. var Feature = {
  2. register_contextMenu : function(){
  3.       $.contextMenu({
  4.             selector: '*',
  5.             items: { 
  6.                   "item_one" : {name: "Item_one", icon: "./path1"},
  7.                   "item_two" : {name: "item_two",  icon: "./path2")
  8.             }
  9.       });
  10. }
  11. $(document).ready(Feature.register_contextMenu)
How would one go about displaying icons alongside the options?

The documentation of the plugin( http://medialize.github.io/jQuery-contextMenu/ ) mentions that one has to define icons in CSS with certain selectors.

How does one use CSS with contextMenu in this case?