Package com.vaadin.flow.component.shared
Interface HasTooltip
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
public interface HasTooltip extends com.vaadin.flow.component.HasElementMixin interface for components that have special handling for tooltips on the Web Component level.Components that implement this interface get a
<vaadin-tooltip slot="tooltip">element added inside the component's light DOM and are expected to handle it appropriately on the client-side.Use this interface only if you are implementing a new component that also has a Web Component counterpart with a custom tooltip support. Otherwise, use
Tooltip.forComponent(Component)instead.- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default TooltipgetTooltip()Gets the tooltip handle of the component.default TooltipsetTooltipText(String text)Sets a tooltip text for the component.
-