How to show tooltips on FlexTable?

193 views
Skip to first unread message

googelybear

unread,
Apr 30, 2009, 5:25:05 AM4/30/09
to Google Web Toolkit
Hi,

I did not manage to display tooltips on the FlexTable (there seems to
be no setTooltip(row, col, text) or similar, and also google did not
yield any promising hits) - is this not possible or did I just not dig
deep enough? Any pointers appreciated ;)

thx,
den

Peter Ondruška

unread,
Apr 30, 2009, 6:00:12 AM4/30/09
to Google-We...@googlegroups.com
What about adding tooltip to the Widget in table cell.

googelybear

unread,
Apr 30, 2009, 6:29:58 AM4/30/09
to Google Web Toolkit
yeah I think that would be an option. I was wondering whether the
flextable directly supports this (currently I'm just setting text
(setHtml()) for the cells - and the table is rather big, so wrapping
all the texts in a label might slow it down)

On 30 Apr., 12:00, Peter Ondruška <peter.ondru...@gmail.com> wrote:
> What about adding tooltip to the Widget in table cell.
>

walrus

unread,
Apr 30, 2009, 8:16:10 AM4/30/09
to Google Web Toolkit
You can use

DOM.setElementAttribute(table.getFlexCellFormatter
().getElement(row, column), "title", "Text to display");

googelybear

unread,
May 1, 2009, 10:32:48 AM5/1/09
to Google Web Toolkit
Thanks for pointing that out. I think that's the way to go for me (if
the api doesn't allow setting the title atrribute for the
cells...which I still think should go into the api)
Reply all
Reply to author
Forward
0 new messages