You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vaadin-flow-components-shared-parent/vaadin-flow-components-base/src/main/java/com/vaadin/flow/component/shared/HasTooltip.java
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,22 @@
15
15
*/
16
16
packagecom.vaadin.flow.component.shared;
17
17
18
+
importcom.vaadin.flow.component.Component;
18
19
importcom.vaadin.flow.component.HasElement;
19
20
20
21
/**
21
-
* Mixin interface for components that support a tooltip.
22
+
* Mixin interface for components that have special handling for tooltips on the
23
+
* Web Component level.
24
+
* <p>
25
+
* Components that implement this interface get a
26
+
* <code><vaadin-tooltip slot="tooltip"></code> element added inside the
27
+
* component's light DOM and are expected to handle it appropriately on the
28
+
* client-side.
29
+
* <p>
30
+
* Use this interface only if you are implementing a new component that also has
31
+
* a Web Component counterpart with a custom tooltip support. Otherwise, use
0 commit comments