manage-modesty-settings.component.ts 2.27 KB
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/manage-modesty-settings.component.html'
})
export class ManageModestySettingsComponent 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: 180, align: 'center' },
                    { width: 230, align: 'center' },
                    { width: 150, align: 'Center' },
                    { width: 150, align: 'Center' },
                    { width: 350, align: 'Center' },
                    { width: 500, align: 'Center' },
                    { width: 130, align: 'Center' },
                    { width: 120, align: 'center' },
                    { width: 280, align: 'Center' },
                    { width: 180, align: 'center' },
                    { width: 200, align: 'center' },
                    { width: 170, align: 'center' },
                    { width: 80, align: 'center' },
                    { width: 150, align: 'center' },
                    { width: 150, align: 'center' },
                    { width: 180, align: 'Center' },
                    { width: 400, align: 'Center' },
                    { width: 150, align: 'center' },
                    { width: 110, 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');
    }
}