I'm using the jquery contextmenu plugin, and try to add a custom class to meny entry.
I push entry in a tab like this :
var tab=[];
classCss="myCustomClass";
tab.push({ title: "Menu entry 1",
action: function(event, ui){
reedIt(ui.cmd);
},
cmd: myId,
addClass: classCss
});
$("#myContener").contextmenu("replaceMenu", tab);
It works well but not for the addClass
option.
Here's the generate <li>
item for this menu :
<li class="ui-menu-item" role="presentation" data-command="2150" jquery111005997....="476">
myCustomClass
is not added to the item.
Is there something wrong in my syntax or something ?