I have searched and found some 1.1 fixes for this question, but they didn't work in 2.2...
I'm using a renderer to show certain icons depending on the value of a cell in a grid. Can I easily add some code to cause a tooltip to show up over each rendered icon in 2.2? I've looked high and low in the forums - found some promising hacks, but nothing panned out.
ITRenderer: function(data) {
if (data=="Web-Based") {
return " ";
}else if (data=="Linux Server") { App6aDemo.java:: Feel free to use, copy or modify it within the framework of your * JViews license agreement. IlvStyleSheetRenderer; import ilog.views.sdm.renderer.maps. . addSeparator(); JLabel gridLabel = new JLabel("Contextual grid ");// should be . @param tooltip button tooltip. * @param imageURL url of button icon. http://www.ilog.com/products/jviews/documentation/jviews-maps-defense81/samples/app6a/srchtml/App6aDemo.java.htmlHOME |
return " ";
}else if (data=="Windows XP/Mac OSX") {
return " ";
}else if (data=="Windows/Mac Server") {
return " ";
}else {
return ""
}
on second thought, that's not what I really wanted. I only want to put a tip to certain icons in the grid and I'd liek to do it in the renderer if possible.
If it were me I'd be consulting the Grid FAQ. Look for 'renderer' and 'qtip'.
Did you not find your way to this thread?
http://extjs.com/forum/showthread.php?p=232674#post232674
What else are you looking for if that doesn't help?
geez, I went there and totally missed that - thanks.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|