Wednesday, August 29, 2018

Re: how to create an anchor column in a celltable

Hi,

You can use a custom cell to do what you want.
You can look at the ButtonCell class for exemple

The render() method is called for each row of the cell table, you can make your <a href=""> link there

@see com.google.gwt.cell.client.ButtonCell

Le mar. 28 août 2018 à 18:00, Ousti Driss <ousti.driss@gmail.com> a écrit :
Hey everyone,

I'm writing the code of a simple web app using gwt, I have a Celltable all its columns are String type,
one of the columns is a url column , I want to make this column clickable, which means once you click on a cell
of this column, you are redicted to the url shown, is that possible?
i tried to add an anchor column to the table, but I got error messages while defining this column when I call the getValue method, the type of return should be a string!!
Is there a way to do such a thing?

Thank you :) 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment