1

I need to show users different tooltips on mouse over event. Do we have something like that in Vaadin component library? If no, how to show tooltips in Vaadin23?

alexanoid
  • 24,051
  • 54
  • 210
  • 410

2 Answers2

3

You could use also get the root element of whatever component you want the tooltip for and set the attribute:

Button button = new Button("Example");
button.getElement.setAttribute("title", "This is the tooltip");
schaphekar
  • 495
  • 1
  • 5
  • 18
1

There is an addon for tooltips https://vaadin.com/directory-beta/addon/tooltip

There is also ongoing work on adding tooltips to the core framework, you can follow the discussion here https://github.com/orgs/vaadin/discussions/3196

Marcus Hellberg
  • 1,853
  • 10
  • 16