-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.ts
More file actions
86 lines (73 loc) · 1.83 KB
/
Copy pathapp.component.ts
File metadata and controls
86 lines (73 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { Component, Input } from '@angular/core';
import * as screenfull from 'screenfull';
import * as $ from 'jquery';
import { Router } from '@angular/router';
// import Chart from '../../node_modules/chart.js/dist/Chart.js';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
isCompressFullScreen: boolean;
isExpandFullScreen: boolean;
app = {
name: 'Angulr',
version: '2.2.0',
color: {
primary: '#7266ba',
info: '#23b7e5',
success: '#27c24c',
warning: '#fad733',
danger: '#f05050',
light: '#e8eff0',
dark: '#3a3f51',
black: '#1c2b36'
},
settings: {
themeID: 1,
navbarHeaderColor: 'bg-black',
navbarCollapseColor: 'bg-white-only',
asideColor: 'bg-black',
headerFixed: true,
asideFixed: false,
asideFolded: false,
asideDock: false,
container: false
}
}
constructor(private router: Router){
}
ngOnInit()
{
}
expandFullScreen()
{
if (screenfull.enabled)
{
this.isExpandFullScreen = false;
this.isCompressFullScreen = true;
screenfull.toggle();
}
}
compressFullScreen()
{
if (screenfull.enabled)
{
this.isExpandFullScreen = true;
this.isCompressFullScreen = false;
screenfull.toggle();
}
}
dashboardv1(){
this.router.navigate(['/dashboard']);
this.app.settings.asideFolded = false;
this.app.settings.asideDock = false;
}
dashboardv2(){
this.router.navigate(['/dashboardv2']);
this.app.settings.asideFolded = true;
this.app.settings.asideDock = true;
}
}