The ASP.NET MVC Tooltip is a pop-up control that displays additional information or a message when users hover, click, focus, or touch an image, button, anchor tag, etc. A Tooltip can contain simple text, images, hyperlinks, or custom templates.
The ASP.NET MVC Tooltip has twelve different options to position it around the target. Also, Tooltips can be configured to follow or not follow the mouse. Tip pointer positions are right, left, top, and bottom.
The tooltip intelligently auto positions its content and arrows. It also fits in the best location of the view port or container.
Load content dynamically to Tooltip on demand using the AJAX callback.
Show or hide the ASP.NET MVC Tooltip with smooth animations and control the animation via effect, duration, and delay.
The tooltip content can be loaded with HTML elements, images, hyperlinks, iframe, videos, maps, etc. Users can also add a title to the content.
Show or hide an ASP.NET MVC Tooltip using hover, click, double-click, focus, and custom modes. Use the custom mode to show or hide a tooltip.
Customize the offset position of a tooltip from a target element.
Prevent the tooltip from hiding after a short duration using the sticky mode.
Show the ASP.NET MVC Tooltip on hover, click, touch, and focus on any element.
The ASP.NET MVC Tooltip can be fully customized using CSS styles.
ASP.NET MVC Tooltip is shipped with several built-in themes such as Bootstrap 5, Fluent, Tailwind CSS, Material, high contrast, and more. Users can customize any one of these built-in themes or create new themes by either simply overriding SASS variables or using the Theme Studio application.
Users just need a message and target element to make the Tooltip fully functional. It will work out of the box. However, it provides many options to change the position, animation, and appearance.
Best user experience on touch devices such as phones and tablets by recognizing touch gestures.
ASP.NET MVC Tooltip supports both SVG and canvas elements. Users can directly attach tooltips to HTML5 <svg> or <canvas> elements to show data visualization elements.
The Tooltip component is also available in Blazor, React, Angular, JavaScript and Vue frameworks. Check out the different Tooltip platforms from the links below:
Fully supports WAI-ARIA accessibility to make it accessible to screen readers and assistive devices.
Based on the WCAG 2.0 standard, UI visual elements such as foreground color, background color, line spacing, text, and images are designed.
Follows WAI-ARIA best practices best practices for implementing keyboard interaction.
In Tooltip, users can control all the UI elements and behaviors. A rich set of developer-friendly APIs provides the best user experience.
Easily get started with the ASP.NET MVC Tooltip using a few simple lines of CSHTML example as demonstrated below. Also explore our ASP.NET MVC Tooltip example that shows you how to render and configure a Tooltip in ASP.NET MVC.
@using Syncfusion.EJ2
@section ControlsSection{
<div class="col-lg-8 control-section">
<!-- Tooltip element -->
@Html.EJS().Tooltip("Tooltip").Content("Let's go green to save the planet!!").ContentTemplate(@<div>
<!-- Target element -->
@Html.EJS().Button("btn").Content("Show Tooltip").Render()
</div>).Render()
</div>
<div class="col-lg-4 property-section">
<table id="property" title="Properties">
<tbody>
<tr>
<td style="width: 30%">
<div>Position</div>
</td>
<td style="width: 70%;padding-right: 10px">
<div>
<select id="positions" class="form-control" onchange="onChange(this)">
<option value="TopLeft">Top Left</option>
<option value="TopCenter" selected="">Top Center</option>
<option value="TopRight">Top Right</option>
<option value="BottomLeft">Bottom Left</option>
<option value="BottomCenter">Bottom Center</option>
<option value="BottomRight">Bottom Right</option>
<option value="LeftTop">Left Top</option>
<option value="LeftCenter">Left Center</option>
<option value="LeftBottom">Left Bottom</option>
<option value="RightTop">Right Top</option>
<option value="RightCenter">Right Center</option>
<option value="RightBottom">Right Bottom</option>
</select>
</div>
</td>
</tr>
</tbody>
</table>
</div>
}
<script>
var tooltip;
window.onload = function () {
tooltip = document.getElementById('Tooltip').ej2_instances[0];
}
function onChange(args) {
tooltip.position = args.value;
}
</script>
<style>
#Tooltip {
position: absolute;
left: calc( 50% - 60px);
top: 45%;
}
#headerpanel {
padding-top: 30px;
padding-bottom: 20px;
font-weight: 600;
font-size: 15px;
}
</style>
You can find our ASP.NET MVC Tooltip demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.