Angular UI Components Documentation
The Angular Tooltip enables users to display a popup message. This guide adds the Angular Tooltip (jqxTooltip) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxtooltip 
In an Angular project (to start one, see Getting started with Angular), add the package with the Angular CLI. It asks for a theme and adds the styles to angular.json:
ng add jqwidgets-ng
Components are standalone: add jqxTooltipModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxTooltipModule } from 'jqwidgets-ng/jqxtooltip';
@Component({
selector: 'app-root',
imports: [jqxTooltipModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<div id='container'>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>The Amazing Spider-man</i><br /><b>Year:</b> 2012'">
<img src='https://www.jqwidgets.com/angular/images/The_Amazng_Spider_Man.jpeg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>The Avengers</i><br /><b>Year:</b> 2012'">
<img src='https://www.jqwidgets.com/angular/images/The_Avengers.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>The Dark Knight Rises</i> <br /><b>Year:</b> 2012'">
<img src='https://www.jqwidgets.com/angular/images/The_Dark_Knight_Rises.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>Harry Potter and the Deathly Hallows - Part 1</i><br /><b>Year:</b> 2010'">
<img src='https://www.jqwidgets.com/angular/images/Harry_Potter_7_Part_1.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>Harry Potter and the Deathly Hallows - Part 2</i><br /><b>Year:</b> 2011'">
<img src='https://www.jqwidgets.com/angular/images/Harry_Potter_7_Part_2.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>Inception</i><br /><b>Year:</b> 2010'">
<img src='https://www.jqwidgets.com/angular/images/Inception.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>Star Trek</i><br /><b>Year:</b> 2009 '">
<img src='https://www.jqwidgets.com/angular/images/Star_Trek.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>Star Wars</i> Episode III: <i>Revenge of the Sith</i><br /><b>Year:</b> 2005'">
<img src='https://www.jqwidgets.com/angular/images/Star_Wars_Episode_III.jpg' />
</jqxTooltip>
<jqxTooltip [position]="'mouse'" [name]="'movieTooltip'"
[content]="'<b>Title:</b> <i>Thor</i><br /><b>Year:</b> 2011'">
<img src='https://www.jqwidgets.com/angular/images/Thor.jpg' />
</jqxTooltip>
</div>
import { Component, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';
import { jqxTooltipModule } from 'jqwidgets-ng/jqxtooltip';
@Component({
imports: [CommonModule, jqxTooltipModule],
selector: 'app-root',
templateUrl: './app.html',
styleUrl: './app.css',
encapsulation: ViewEncapsulation.None
})
export class App {}
html, body {
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
}
#container {
width: 400px;
}
jqxTooltip {
margin: 8px 8px 0 8px;
float: left;
}
jqxTooltip div {
height: 162px;
}
Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, open: This event is triggered when the tooltip is opened (shown).
<jqxTooltip (onOpen)="onOpen($event)"></jqxTooltip>
onOpen(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, open: Opens the tooltip.
<jqxTooltip #myTooltip></jqxTooltip>
import { Component, viewChild } from '@angular/core';
import { jqxTooltipModule, jqxTooltipComponent } from 'jqwidgets-ng/jqxtooltip';
@Component({
selector: 'app-root',
imports: [jqxTooltipModule],
templateUrl: './app.html'
})
export class App {
readonly myTooltip = viewChild.required<jqxTooltipComponent>('myTooltip');
run(): void {
this.myTooltip().open();
}
}