├── .gitignore
├── README.md
├── gulpfile.js
├── gulpfile.ts
├── package.json
├── resources
└── tooltip-example.png
├── sample
└── sample1-simple-usage
│ ├── index.html
│ └── main.ts
├── src
├── Tooltip.ts
├── TooltipContent.ts
└── index.ts
├── tsconfig-aot.json
├── tsconfig.json
└── tslint.json
/.gitignore:
--------------------------------------------------------------------------------
1 | typings/
2 | build/
3 | node_modules
4 | npm-debug.log
5 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | > This repository is for demonstration purposes of how it can be implemented in Angular and is not maintaned. Please fork and maintain your own version of this repository.
2 |
3 | # ngx-tooltip
4 |
5 | Simple tooltip control for your angular2 applications using bootstrap3. Does not depend of jquery.
6 | If you want to use it without bootstrap - simply create proper css classes. Please star a project if you liked it, or create an issue if you have problems with it.
7 |
8 | 
9 |
10 | ## Installation
11 |
12 | 1. Install npm module:
13 |
14 | `npm install ngx-tooltip --save`
15 |
16 | 2. If you are using system.js you may want to add this into `map` and `package` config:
17 |
18 | ```json
19 | {
20 | "map": {
21 | "ngx-tooltip": "node_modules/ngx-tooltip"
22 | },
23 | "packages": {
24 | "ngx-tooltip": { "main": "index.js", "defaultExtension": "js" }
25 | }
26 | }
27 | ```
28 |
29 | ## Usage
30 |
31 | Example of simple usage:
32 |
33 | ```html
34 |
38 | element on which this tooltip is applied.
39 |
40 | ```
41 |
42 | Example of usage with dynamic html content:
43 |
44 | ```html
45 |
46 | VeryDynamicReusable
47 | Tooltip With Html support.
48 |
49 |
50 |
51 | ```
52 |
53 | * ``:
54 | * `tooltip="string"` The message to be shown in the tooltip.
55 | * `[tooltipDisabled]="true|false"` Indicates if tooltip should be disabled. If tooltip is disabled then it will not be shown. Default is **false**
56 | * `[tooltipAnimation]="true|false"` Indicates if all tooltip should be shown with animation or not. Default is **true**.
57 | * `tooltipPlacement="top|bottom|left|right"` Indicates where the tooltip should be placed. Default is **"bottom"**.
58 | * ``:
59 | * `[animation]="true|false"` Indicates if all tooltip should be shown with animation or not. Default is **true**.
60 | * `placement="top|bottom|left|right"` Indicates where the tooltip should be placed. Default is **"bottom"**.
61 |
62 | ## Sample
63 |
64 | ```typescript
65 | import {Component} from "@angular/core";
66 | import {TooltipModule} from "ngx-tooltip";
67 |
68 | @Component({
69 | selector: "app",
70 | template: `
71 |
72 |
73 |
74 |
75 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
76 | The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
77 | Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy.
78 | Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)
79 |
80 |
81 |
82 |
83 |
84 | VeryDynamicReusable
85 | Tooltip With Html support.
86 |
87 |
88 |
89 |
13 | It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
14 | The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
15 | Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy.
16 | Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)
17 |
18 |
19 |
20 |
21 |
22 | VeryDynamicReusable
23 | Tooltip With Html support.
24 |
25 |
26 |
27 |