Project

General

Profile

« Previous | Next » 

Revision 57496

[Monitor_dashboard]:Initialize monitor admin. Home page has been created.

View differences:

sidebar.ts
1
import {ElementRef, TemplateRef} from "@angular/core";
2

  
3
export class Header {
4
  name: string;
5
  dashboard: string;
6
  logoUrl: string;
7

  
8
  constructor(name: string, dashboard: string, logoUrl: string = null) {
9
    this.name = name;
10
    this.dashboard = dashboard;
11
    this.logoUrl = logoUrl
12
  }
13
}
14

  
1 15
export class Item {
2 16
  name: string;
3 17
  route: string;
4 18
  items: Item[];
5 19
  icon: string;
6 20
  open: boolean;
21
  action: TemplateRef<ElementRef>;
7 22

  
8
  constructor(name: string, route: string, items: Item[], icon, open: boolean) {
23
  constructor(name: string, route: string, items: Item[], icon, open: boolean, action: TemplateRef<ElementRef> = null) {
9 24
    this.name = name;
10 25
    this.route = route;
11 26
    this.items = items;
12 27
    this.icon = icon;
13 28
    this.open = open;
29
    this.action = action;
14 30
  }
15 31
}
16 32

  
17 33
export class Sidebar {
18 34
  items: Item[];
35
  header: Header;
19 36

  
20
  constructor(items: Item[]) {
37
  constructor(items: Item[], header: Header) {
21 38
    this.items = items;
39
    this.header = header;
22 40
  }
23 41
}

Also available in: Unified diff