David Arcoleo wrote:
>> I can send some code snippets to get you going.
>
> Thanks, that would be great.
It's worth looking at
frontend/framework/source/class/qx/ui/table/DefaultDataCellRenderer.js
and some of the other renderers.
You'll see from this that it's already possible to right align, use bold
and italic.
What I've done for a hyperlink is create a new class which inherits from
qx.ui.table.AbstractDataCellRenderer, and override _getContentHtml:
qx.Proto._getContentHtml = function(cellInfo) {
var value = cellInfo['value'];
if (value == null) return '';
// Obviously any other character could be used to split fields
var s = value.split (' ');
var c = s[0];
var url = s[1];
return "<a href='" + url + "'>" + c + "</a>";
}
I actually have a bit more logic than that, but that's roughly what it
looks like.
As I mentioned before though, the link doesn't seem to work on Firefox
(although IE does) and is bug #246 I believe.
Nick
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel