Search code examples
tapestry

How to add a tooltip(or a title tag) to tapestry grid rows?


How to add a tooltip(or a title tag) to tapestry grid rows? I want to show row sensitive information in the tool tip. I could do it in t:loop but I need to use t:grid. I do not need an additional column in the grid.

I am using tapestry version 5.0.18.


Solution

  • I have written a GridDecorator mixin which applies decorators to rows and cells after a grid component has rendered. The decorators have a reference to the DOM element and the bean that was used to draw the grid row. So you can decorate the DOM however you like (for example adding a context menu to every row that is specific to the row).

    Demo/Code here: