This repository was archived by the owner on Sep 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 22 "COMMENT" : " THIS FILE WILL BE PARSED DURING BUILD. IT IS NOT THE ACTUAL PACKAGE FILE PUSHE TO NPMJS!" ,
33 "name" : " @cloukit/tooltip" ,
44 "moduleId" : " tooltip" ,
5- "version" : " 1.2 .0" ,
5+ "version" : " 1.3 .0" ,
66 "description" : " A simple tooltip component" ,
77 "license" : " MIT" ,
88 "author" : " codelcou.io" ,
Original file line number Diff line number Diff line change @@ -73,8 +73,9 @@ export class CloukitTooltipDirective {
7373 activate ( ) {
7474 this . _doActivate ( ) ;
7575 }
76-
76+ ‚‚
7777 @HostListener ( 'mouseleave' )
78+ @HostListener ( 'click' )
7879 deactivate ( ) {
7980 this . _doDeactivate ( ) ;
8081 }
Original file line number Diff line number Diff line change 3535 cloukitTooltip ="delicious german sausage "
3636 cloukitTooltipPlacement ="bottom "
3737 > Bratwurst</ button >
38+ < br > < br >
39+ < span class ="label "> tooltip on a buton with click action:</ span >
40+ < a
41+ href ="# "
42+ class ="tooltipTrigger "
43+ cloukitTooltip ="delicious german sausage "
44+ cloukitTooltipPlacement ="bottom "
45+ (click) ="counter=counter+1 "
46+ > Bratwurst {{counter}}</ a >
3847</ div >
Original file line number Diff line number Diff line change @@ -8,4 +8,6 @@ import { Component } from '@angular/core';
88 '.label { display:inline-block; width:250px; }' ,
99 ] ,
1010} )
11- export class DemoComponent { }
11+ export class DemoComponent {
12+ counter = 0 ;
13+ }
You can’t perform that action at this time.
0 commit comments