PDA

View Full Version : context menu separator



nar
22 Jul 2009, 11:36 AM
Thanks for the help earlier pointing me to the context menu, had never seen it before.

I am having an issue hiding the separator, I've removed the icon but cant get the separator to hide:



if (fieldName == myTitle[i]) {
var myMenu = new Ext.menu.Menu({
showSeparator: false,
cls: 'no-icon-menu'
});
if (i == 0) {
myMenu.add(new Ext.menu.Item({
text: 'Search for: ' + fieldValue
}));
event.stopEvent();
myMenu.showAt(event.getXY());
}
}

.....

div.no-icon-menu a.x-menu-item {
padding-left: 0;
}