1

Closed

contextmenu with spriteCssClass

description

It would be great if we could add css classes to contextmenu's. I'm using version 2012 Q1 and changed line 776 (treeview) to the following in order to be able to use p.e. icons in the contextmenu:
menuItems += '<li class="t-item' + (item.disabled != undefined ? ' t-state-disabled' : '') + '"><a href="#" class="t-link">' + item.text + '</a>' + (item.spriteCssClass != undefined ? '<span class="' + item.spriteCssClass + '"></span>' : '') + '</li>';
 
Irene
Closed Apr 27, 2012 at 5:48 PM by jddevight
Resolved in Change Set # 15030

comments

ihmeijer wrote Apr 17, 2012 at 12:27 PM

Sorry, added the wrong line. It should be:

menuItems += '<li class="t-item' + (item.disabled != undefined ? ' t-state-disabled' : '') + '">' + (item.spriteCssClass != undefined ? '<span class="' + item.spriteCssClass + '"></span>' : '') + '<a href="#" class="t-link">' + item.text + '</a></li>';

jddevight wrote Apr 20, 2012 at 5:47 PM

Great suggestion Irene! I'll get that implemented this weekend.

Regards,

John

wrote Apr 20, 2012 at 5:48 PM

wrote Apr 20, 2012 at 5:50 PM

wrote Apr 27, 2012 at 5:48 PM

wrote Feb 14, 2013 at 2:02 AM

wrote May 16, 2013 at 7:11 AM