Reputation: 338835
Does either the Grid or Table widget in Vaadin 7 let me know when the user hovers the mouse pointer over a row?
I want to react to row hover, such as showing an image and switching the image for each particular row on which the user is pointing with the mouse pointer.
Upvotes: 2
Views: 2833
Reputation: 4967
It depends on what should exactly happen when you hover an element.
Maybe you could use a ItemDescriptionGenerator
like @Nebras already pointed out on another answer
Just use a standard css :hover selector to change background image (or some other attribute) of an element.
Use Mouse Event Extension to listen mouse over and mouse out events on your server-side code. But you must be very careful with this one to avoid generating too much requests. UPDATE This add-on was withdrawn by its author. Source code available.
Upvotes: 2