Your search did not match any results.

Tooltip

The Tooltip component can display a tooltip for an element on the page. To bind the Tooltip to an element, use the target property.

Backend API
<div class="form"> <div class="label">Default mode</div> <div> <img alt="ExcelRemote IR" id="product1" src="~/Content/Images/ProductsLarge/17.png"> @(Html.DevExtreme().Tooltip() .Target("#product1") .ShowEvent("mouseenter") .HideEvent("mouseleave") .HideOnOutsideClick(false) .ContentTemplate("ExcelRemote IR") ) </div> <div class="label">With template</div> <div> <img alt="SuperPlasma 50" id="product2" src="~/Content/Images/ProductsLarge/3.png"> @(Html.DevExtreme().Tooltip() .Target("#product2") .ShowEvent("mouseenter") .HideEvent("mouseleave") .HideOnOutsideClick(false) .Position(Position.Right) .ContentTemplate(@<text> <img alt="SuperPlasma 50" width="150" src="~/Content/Images/ProductsLarge/3.png"> <br /> <b>SuperPlasma 50</b> <br /> 2400$ </text>) ) </div> <div class="label">With animation</div> <div> <img alt="Projector PlusHD" id="product3" src="~/Content/Images/ProductsLarge/15.png"> @(Html.DevExtreme().Tooltip() .ContentTemplate("Projector PlusHD") .Target("#product3") .ShowEvent("mouseenter") .HideEvent("mouseleave") .HideOnOutsideClick(false) .Position(Position.Top) .Animation(a => a .Show(s => s .Type(AnimationType.Slide) .From(new { top = -100, opacity = 0 }) .To(new { top = 0, opacity = 1 }) ) .Hide(h => h .Type(AnimationType.Pop) .From(new { scale = 1, opacity = 1 }) .To(new { scale = 0.1, opacity = 0 }) ) ) ) </div> </div>
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class TooltipController : Controller { public ActionResult Overview() { return View(); } } }
.form { padding: 20px; } .form img { width: 100px; margin: 10px 0 30px; } .label { font-size: 16px; }

Show and Hide the Tooltip

To show and hide the Tooltip in response to certain events, specify the showEvent and hideEvent properties. These properties can accept multiple events at once as well as an object.

To hide the Tooltip when a user clicks outside its borders, use the hideOnOutsideClick property.

Customize and Animate the Tooltip

Assign the Tooltip's content in the HTML markup. Alternatively, you can use the content template to customize the Tooltip's content.

If you need to position the Tooltip at a certain side of the target element, specify the position property.

To animate the Tooltip, declare the animation object. In this object, specify the show and hide fields.