import { ElementRef } from '@angular/core'; declare const toastr; /** type functions -> success(), info(), warning(), error() */ toastr.options = { "closeButton": false, "debug": false, "positionClass": "toast-top-right", "onclick": null, "showDuration": "0", "hideDuration": "0", "timeOut": "5000", "extendedTimeOut": "300", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } // @dynamic export class ScreenOperations { static getFirstChildWithWidth(element: ElementRef) { var nativeElement = element.nativeElement; while (nativeElement && !nativeElement.clientWidth) nativeElement = nativeElement.children[0]; return nativeElement; } static toastr = toastr; }