Hover for Tilegrid

Is it possible to have hovers/prompts for TileGrid’s items (for DetailViewerFields)? Thanks.

I’d possibly be interested in this too, perhaps to see more events able to be tied back to a record (hovering over record, double-clicking on record, etc). I’m using a DoubleClickHandler on the TileGrid now but kinda cheat and used getSelectedRecord in order to determine the record being double-clicked on.

The following is one example of how to display a tooltip over a TileGrid entity (Record) when the mouse is hovered over it:

        TileGrid tileGrid = new TileGrid()
        {
            protected String getTileHTML(Record record) 
            {
                String html = super.getTileHTML(record);
                
                int index = html.indexOf("<img");
                
                if (index > -1)
                {
                    String before = html.substring(0, index + "<img".length());
                    String end = html.substring(index + "<img".length());
                    html = before + " title='" + record.getAttribute("name") + "'" + end;
                }
                
                return (html);
            }
        };

Thanks!

That’s a great tip!
it works perfectly.