DevExtreme jQuery/JS - Overview
The Tooltip widget displays a tooltip for a specified element on the page.
The following code creates a simple Tooltip on your page and attaches it to another element (in this example, to an image).
HTML
JavaScript
- <img id="image" src="https://url/to/an/image" />
- <div id="tooltipContainer"></div>
- $(function() {
- $("#tooltipContainer").dxTooltip({
- target: "#image",
- showEvent: 'dxhoverstart',
- hideEvent: 'dxhoverend',
- contentTemplate: function (contentElement) {
- contentElement.append(
- $("<p />").text("Tooltip content")
- )
- }
- });
- });
See Also
- Configure a Widget: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
- Tooltip - Show and Hide
- Tooltip - Customize the Content
- Tooltip - Resize and Relocate
- Tooltip API Reference
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.