@@ -38,14 +38,17 @@ import {
3838 THEME_TOKEN ,
3939 ThemeToken ,
4040 IgxGridToolbarDirective ,
41+ OverlaySettings ,
4142 IgxStringFilteringOperand
4243} from 'igniteui-angular' ;
44+ import { fadeIn } from 'igniteui-angular/animations'
4345import { IgxSparklineModule } from 'igniteui-angular-charts' ;
4446import { defineComponents , IgcRatingComponent } from 'igniteui-webcomponents' ;
4547import { dropbox , delivery , billPaid , check } from '@igniteui/material-icons-extended' ;
4648import { OrderDetails , OrderStatus , TemplateDataModel } from '../data/dataModels' ;
4749import { SalesTrendsChartComponent } from '../sales-trends-chart/sales-trends-chart.component' ;
4850import { ErpDataService } from '../services/erp-data.service' ;
51+ import { useAnimation } from '@angular/animations' ;
4952
5053defineComponents ( IgcRatingComponent ) ;
5154
@@ -168,19 +171,25 @@ export class ErpHGridSampleComponent implements AfterViewInit {
168171 }
169172
170173 public onImageHover ( event : MouseEvent , dialog : IgxDialogComponent ) {
171- if ( dialog ) {
174+ if ( dialog ) {
172175 const targetEl = event . target as HTMLElement ;
173176
174177 const positionSettings : PositionSettings = {
178+ openAnimation : useAnimation ( fadeIn , {
179+ params : {
180+ delay : '400ms'
181+ }
182+ } ) ,
175183 horizontalStartPoint : HorizontalAlignment . Right ,
176184 verticalStartPoint : VerticalAlignment . Top
177185 } ;
178186
179- dialog . open ( {
187+ const overlaySettings : OverlaySettings = {
180188 target : targetEl ,
181189 modal : false ,
182190 positionStrategy : new AutoPositionStrategy ( positionSettings )
183- } ) ;
191+ }
192+ dialog . open ( overlaySettings ) ;
184193 }
185194 }
186195
0 commit comments