@@ -402,6 +402,7 @@ export class IgxTimePickerComponent implements
402
402
public onValidationFailed = new EventEmitter < IgxTimePickerValidationFailedEventArgs > ( ) ;
403
403
404
404
/**
405
+ * @deprecated Use 'onOpened' instead.
405
406
* Emitted when a timePicker is being opened.
406
407
* ```html
407
408
*@ViewChild ("toast")
@@ -427,6 +428,7 @@ export class IgxTimePickerComponent implements
427
428
public onOpened = new EventEmitter < IgxTimePickerComponent > ( ) ;
428
429
429
430
/**
431
+ * @deprecated Use 'onClosed' instead.
430
432
* Emitted when a timePicker is being closed.
431
433
*/
432
434
@DeprecateProperty ( `'onClose' @Output property is deprecated. Use 'onClosed' instead.` )
@@ -1428,7 +1430,7 @@ export class IgxTimePickerComponent implements
1428
1430
public okButtonClick ( ) : boolean {
1429
1431
const time = this . _getSelectedTime ( ) ;
1430
1432
if ( this . _isValueValid ( time ) ) {
1431
- this . hideOverlay ( ) ;
1433
+ this . close ( ) ;
1432
1434
this . value = time ;
1433
1435
return true ;
1434
1436
} else {
@@ -1455,7 +1457,7 @@ export class IgxTimePickerComponent implements
1455
1457
this . displayValue = this . _formatTime ( this . value , this . format ) ;
1456
1458
}
1457
1459
1458
- this . hideOverlay ( ) ;
1460
+ this . close ( ) ;
1459
1461
1460
1462
this . selectedHour = this . _prevSelectedHour ;
1461
1463
this . selectedMinute = this . _prevSelectedMinute ;
@@ -1511,10 +1513,10 @@ export class IgxTimePickerComponent implements
1511
1513
* ```
1512
1514
* ```typescript
1513
1515
* @ViewChild ('timePicker', { read: IgxTimePickerComponent }) picker: IgxTimePickerComponent;
1514
- * picker.hideOverlay ();
1516
+ * picker.close ();
1515
1517
* ```
1516
1518
*/
1517
- public hideOverlay ( ) : void {
1519
+ public close ( ) : void {
1518
1520
this . toggleRef . close ( ) ;
1519
1521
}
1520
1522
@@ -1549,7 +1551,7 @@ export class IgxTimePickerComponent implements
1549
1551
this . onValueChanged . emit ( args ) ;
1550
1552
}
1551
1553
} else {
1552
- this . hideOverlay ( ) ;
1554
+ this . close ( ) ;
1553
1555
}
1554
1556
}
1555
1557
0 commit comments