import { Component, AfterViewInit, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { ApplicationService } from '../services/application.service'; declare var jQuery: any; @Component({ templateUrl: './app/components/new-subscription-report.component.html' }) export class NewSubscriptionReportComponent implements AfterViewInit, OnInit { constructor(private application: ApplicationService, private router: Router) { } ngAfterViewInit(): void { this.initializeUIElements(); jQuery(function () { jQuery('#datetimepicker1, #datetimepicker2').datetimepicker({ //language: 'pt-BR' }); }); jQuery(function () { jQuery('#fixed_hdr2').fxdHdrCol({ fixedCols: 0, width: "100%", height: 200, colModal: [ { width: 130, align: 'center' }, { width: 230, align: 'center' }, { width: 150, align: 'Center' }, { width: 150, align: 'Center' }, { width: 250, align: 'Center' }, { width: 200, align: 'Center' }, { width: 130, align: 'Center' }, { width: 200, align: 'center' }, { width: 150, align: 'Center' }, { width: 180, align: 'center' }, { width: 200, align: 'center' }, ], sort: true }); }); } initializeUIElements(): void { } ngOnInit(): void { /*if (this.application.currentUser == null) { this.router.navigate(['/login']); }*/ } showAlert(id: string): void { jQuery('#' + id).modal('show'); } }