1
- import { BrowserModule } from " @angular/platform-browser" ;
2
- import { NgModule } from " @angular/core" ;
1
+ import { BrowserModule } from ' @angular/platform-browser' ;
2
+ import { NgModule } from ' @angular/core' ;
3
3
4
- import { AppRoutingModule } from " ./app-routing.module" ;
5
- import { AppComponent } from " ./app.component" ;
6
- import { ReactiveFormsModule } from " @angular/forms" ;
7
- import { ExampleComponent } from " ./example/example.component" ;
8
- import { popperVariation , TippyModule , tooltipVariation , withContextMenuVariation } from " @ngneat/helipopper" ;
4
+ import { AppRoutingModule } from ' ./app-routing.module' ;
5
+ import { AppComponent } from ' ./app.component' ;
6
+ import { ReactiveFormsModule } from ' @angular/forms' ;
7
+ import { ExampleComponent } from ' ./example/example.component' ;
8
+ import { popperVariation , TippyModule , tooltipVariation , withContextMenuVariation } from ' @ngneat/helipopper' ;
9
9
10
10
@NgModule ( {
11
11
declarations : [ AppComponent , ExampleComponent ] ,
@@ -14,20 +14,24 @@ import { popperVariation, TippyModule, tooltipVariation, withContextMenuVariatio
14
14
AppRoutingModule ,
15
15
ReactiveFormsModule ,
16
16
TippyModule . forRoot ( {
17
- defaultVariation : " tooltip" ,
17
+ defaultVariation : ' tooltip' ,
18
18
variations : {
19
19
tooltip : tooltipVariation ,
20
20
popper : popperVariation ,
21
21
menu : {
22
22
...popperVariation ,
23
- appendTo : " parent" ,
23
+ appendTo : ' parent' ,
24
24
arrow : false ,
25
25
offset : [ 0 , 0 ]
26
26
} ,
27
27
contextMenu : withContextMenuVariation ( popperVariation ) ,
28
28
popperBorder : {
29
29
...popperVariation ,
30
- theme : "light-border"
30
+ theme : 'light-border'
31
+ } ,
32
+ hideOnEscape : {
33
+ ...tooltipVariation ,
34
+ hideOnEscape : true
31
35
}
32
36
}
33
37
} )
0 commit comments