How to set the title in the widget of a GWT cell?

I have a cell table that has several columns whose data can sometimes be wider than their column width.

I have a css text overflow set to ellipsis, so it is obvious to the user that the value of the cell is greater if it exceeds the width of the column.

With “normal” widgets, I would just use setTitle () to automatically display the full contents of the mouse, but TextCell (and all other cell widgets) do not distribute UiObject, so they don’t have this method.

TextCell is implemented by a div in the td tag. Being able to set a title on both elements will give me the behavior I'm looking for, but I cannot find a way to get a handle on any of the elements.

What is the best way to make the behavior of the HTML header work in a cell table widget?

Thank,

Arc

+3
source share
2 answers

you can write your own cell implementation and set the header in the html template yourself.

Take a look at the cell implementation. Basically they provide an html string for rendering.

+3
source

Some of these issues have been “fixed” in GWT 2.3. But if you are stuck using GWT 2.2, then writing your own cell implementation is the way to go.

0
source

All Articles