I have a table with a lot of columns. The column’s have abbreviated titles. I was was wondering if there was a way to have a description come up with the user mouses over the column header, like a tooltip for other components. Is this possible?
Hi,
there is currently no clean way to do this. For a not-so-clean way, see this thread:
https://vaadin.com/forum#!/thread/310923
I actually tried this before but with no success, It just gets rid of my headers and makes them blank. Here’s the code:
@Override
public String getColumnHeader(Object propertyId) {
return "<a title=\"Tooltip text" + propertyId + "\"</a>";
}
That looks a bit off, try something like this (“Header” should be the visible header):
return "<a title=\"Tooltip text\">Header</a>";
Works great! Thanks.