Basil Bourque
Basil Bourque

Reputation: 338835

Event for "mouse over" when user hovers mouse pointer over row in Grid or Table in Vaadin 7?

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

Answers (2)

Henri Kerola
Henri Kerola

Reputation: 4967

It depends on what should exactly happen when you hover an element.

  1. Maybe you could use a ItemDescriptionGenerator like @Nebras already pointed out on another answer

  2. Just use a standard css :hover selector to change background image (or some other attribute) of an element.

  3. 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

Nebras
Nebras

Reputation: 636

Try to use ItemDescriptionGenerator and create your own custom description (tooltip) for each row, check this. you can add rich tooltip.

Upvotes: 1

Related Questions