0.0.12 • Published 3 years ago

moots-tooltips v0.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

MootsTooltips

This library was generated with Angular CLI version 14.1.0 and used for Ionic project.

usage

Using with the Ionic lifescycle hooks.

example

in the 'ion-page.ts' file:

import { Component } from '@angular/core';
import { TooltipService } from 'moots-tooltips';   // -> import the package

@Component({...})
export class Tab2Page {
  constructor(private tooltipService: TooltipService) {}   // -> inject the service

  ionViewDidEnter() {
    this.tooltipService.addTooltip(
      'tab2-content',   // parent id
      'tab2-span',      // target id
      'hello world!',   // text content
      'top-start'       // tooltip position
    );  // -> add tooltips
  }

  ionViewDidLeave() {
    this.tooltipService.clearAll(); // -> clear all the tooltips
  }
}
0.0.12

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago