I would like to announce a new module that I developed for Ionic Apps (3.x). If you liked using my previous modules (Ionic Image Loader, and/or Ionic Super Tabs) then you will like this one too!
This module lets you add Tooltips to your app. These tooltips can help explain features to your users, or provide some sort of feedback.
You can see it in action in the GIF below, or by cloning and testing the example project.
The module can be used to display tooltips for any element in your app. It also provides a special treatment for buttons in the header navigation (inspired by Google’s apps).
Here’s a quick example to show a tooltip below a button:
<!-- positionV specifies where the tooltip should be displayed vertically, can be either top or bottom -->
<!-- arrow tells the tooltip directive to show an arrow above the tooltip box -->
<button ion-button [tooltip]="I'm a tooltip below a button" positionV="bottom" arrow>
Press me to see a tooltip
</button>
And here’s another example to show a tooltip below a nav button:
<ion-header>
<ion-navbar>
<ion-title>Page title</ion-title>
<ion-buttons end>
<!-- navTooltip tells the tooltip directive that this is a nav button -->
<ion-button icon-only [tooltip]="Call" navTooltip>
<ion-icon name="call"></ion-icon>
</ion-button>
</ion-buttons>
</ion-navbar>
</ion-header>
The module listens to either click, OR press. Depending on how you
configure it. Press is different than click, you basically need to press
and hold for about a second for the event to fire. Click fires when you
press and release.
Awesome Module. It would be great to see a simple example for launching it programmatically since it must be such a common use case to use tooltips as a first-time hint on the phone.
go to the ionic-tooltip folder in the node modules and go through the script files one by one…You will find a class where the style is defined…Try to change the values of the style object and re-serve the application otherwise you will not be able see the changes.
Hi…Thanks for such an useful module…I have a tooltip for a button…Once I click the button, it pushes another page. The tooltip is working but it retains in the next page…Is there any way to avoid this.