Table Headers Description

Hi,

How to set the table header description using Vaadin.

For example,

If i have a table with two columns “A” and “B” then A and B are the column headers. When i move my mouse over the headers, i should get a description about it (tooltip). Could you help me to implement this?

Hi Thamizh,

As far as I know there is no ability to set tooltip for table’s columns headers. But table’s headers can accept HTML and you could do a trick by overriding getColumnHeader method:

    @Override
    public String getColumnHeader(Object propertyId) {
        return "<div title=\"Tooltip text\">" + super.getColumnHeader(propertyId) + "</div>";
    }

Regards, Alex