Sunday, March 13, 2016

Re: onBrowserEvent change Cell colour

You just want to change the color on mouse over or need something else?

I ask that because if the problem is only about changing the color of the cell, you can do that with plain CSS.

Something like that:

Java code:
yourTable.addStyleName("myNiceTable");

CSS:

.myNiceTable td:hover {
    color: red; /* or something else */
}

Generally speaking, developers usually change the background color of the hovered table row. For that, you can use a similar CSS:

.myNiceTable tr:hover {
    background-color: #f2f2f2;
}

Hope that helps ;-)

--
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