Hi Alex,
Thanx. I was able to have Hyperlinks on imges using HTML cellrenderer. But
I came across two issues. But before that Have a look at the code :
.................................
var rowData = [];
var htmlPlay = "<A HREF=''><IMG SRC='../images/play.png' ALT='Play
image'></A>";
var htmlDelete = "<A HREF=''><IMG SRC='../images/delete.png'
ALT='delete image'></A>";
for (var row = 0; row < 100; row++) {
var x = Math.random() * 1000;
rowData.push([row, x, x, x*2, x*3,htmlPlay +
htmlDelete]);
}
model.setData(rowData);
var htmlTable = new qx.ui.table.cellrenderer.Html();
table.getTableColumnModel().setDataCellRenderer(5, htmlTable);
..................................
I have two hyperlink images(htmlPlay and htmlDelete) on column 5th. The
first question is :
How do I keep addListener for these two HTML Hyperlinks ?
Second question is :
The above data for the table is hardcoded using push() as you see. When it
comes to populating data from the backend(php+mysql what I have), then how
do we accomodate these HTML Hyperlinks at a specified column(lets say 5th)
?
Thanx and regards
Farci
On Fri, Feb 20, 2009 at 4:02 AM, Alexander Back <[email protected]>wrote:
> Hi Farci,
>
> salman farci wrote:
> > How to get a button inside a table column ? Is there a way to have 2 or
> > 3(multiple) Buttons inside the column of table, possibly with a image on
> > it ? Just looking if anyone can help on this issue.
> The table cell can not handle qooxdoo widgets. If you plan to use HTML
> native controls you can use the HTML cellrenderer.
> Just take a look at the API-Viewer:
> -> http://demo.qooxdoo.org/devel/apiviewer/#qx.ui.table.cellrenderer
>
> cheers,
> Alex
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel