angular2-tippy

tdanielcox
deprecated
angular2-tippy JS library on GitHub angular2-tippy JS library on npm Download angular2-tippy JS library

An angular2 directive for tippy.js

Version 1.0.2 License MIT
angular2-tippy has no homepage
angular2-tippy JS library on GitHub
angular2-tippy JS library on npm
Download angular2-tippy JS library
Keywords
tippyangular2-tippytooltipsangular2-tooltips
<script type="module"> import angular2Tippy from 'https://cdn.jsdelivr.net/npm/angular2-tippy@1.0.2/+esm' </script>
Learn more

Angular2 Tippy

A directive for the tippy.js library

Installation

Install with NPM:

npm install angular2-tippy

Then, import the directive

import { TippyDirective } from 'angular2-tippy';
declarations: [
    ...
    TippyDirective
    ...
]

Important: Include the CSS from the tippy package

Usage


// Basic - This is the basic directive usage
<div tippy title="This is your tooltip"></div>

// With tippy options
<div id="my-tooltip-template" style="display: none">
    <p>This is my custom tooltip template</p>
</div>

<div tippy
    [tippyOptions]="{
        html: '#my-tooptip-template',
        ...
    }">
</div>

Options

tippyOptions

Type: Object Default: null

Pass all your tippy options here