The JavaScript Tooltip is a pop-up control that shows information or a message when users hover, click, focus, or touch an image, button, anchor tag, etc. The information displayed in the Tooltip can include simple text, images, hyperlinks, or custom templates.
The JavaScript Tooltip has twelve different options to position it around the target. Also, you can configure the Tooltip to follow or not follow the mouse. To position the tip pointer, there are four options: right, left, top, and bottom.
The JavaScript Tooltip intelligently auto positions its content and arrows. It will fit in the best location of the view port or container.
You can load dynamic content for JS Tooltip on demand using an AJAX callback.
The JavaScript Tooltip shows and hides animations that are completely customizable. You can include animation effect, duration, and delay. You can also control transition effects at the application level.
Using templates, the tooltip content is loaded with inline HTML, images, iframe, videos, and maps. You can also add a title to the content.
You can control show-and-hide triggers of a HTML5 Tooltip using auto, hover, click, focus, and custom modes. Implement your own custom mode to control the show and hide behaviors.
Customize the offset position of a tooltip from a target element. This offset value is defined in pixels.
By default, the HTML5 Tooltip will show and hide when hovering in and out. You can stop the show and hide triggers and make the Tooltip visible always.
You can show JavaScript Tooltip on hover, click, touch, and focus on any element. It displays details about the item’s values in a tooltip.
You can completely customize the HTML5 Tooltip using CSS.
HTML5 Tooltip is shipped with several built-in themes such as Material, Bootstrap, Fabric (office 365), and high contrast. Users can customize any one of these built-in themes or create new themes to achieve their own desired look and feel. They can do this by either simply overriding SASS variables or using our Theme Studio application.
You just need a message and target element to make the JS Tooltip fully functional. It will work out of the box. However, it provides many options to change the position, animation, and appearance.
The Tooltip in JavaScript responds to screen size and adapts its contents to fit any touch device. It recognizes touch gestures and displays its message when performing a touch and hold action. It will hide after 1500ms. This provides the best user experience for touch devices such as phones and tablets.
JavaScript schematics is a workflow tool that allows you generate component, modules, and resolve dependency issues. The main goal of the schematics is ease of use and development in the JavaScript environment.
JavaScript Tooltip with rich UI supports both SVG and canvas elements. Users can directly attach tooltips to <svg> or <canvas> elements to show data visualization elements.
Tooltip in JavaScript provides a rich set of built-in themes. It can be used to modify the control’s appearance based on user preference.
The Tooltip component is also available in Blazor, React, Angular, 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 element visuals 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 JS Tooltip, you have control over all the UI elements and behaviors. It provides the best user experience to users through a rich set of developer-friendly APIs.
Easily get started with the JavaScript Tooltip (HTML5 Tooltip) using a few simple lines of HTML and TS code, as demonstrated below. Also explore our JavaScript Tooltip Example that shows you how to render and configure the Tooltip in JS.
<div style="margin: 50px;">
<!--element which is going to render-->
<span id='target'>Show Tooltip</span>
</div>
import { Tooltip } from '@syncfusion/ej2-popups';
// initialize tooltip component
let tooltip: Tooltip = new Tooltip({
content: 'Tooltip content'
});
// render initialized tooltip
tooltip.appendTo('#target');
You can find our JavaScript 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.