Project

General

Profile

1
export class Header {
2
  name: string;
3
  dashboard: string;
4
  logoUrl: string;
5

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

    
13
export class Item {
14
  id: string;
15
  name: string;
16
  route: string;
17
  items: Item[];
18
  icon: string;
19
  open: boolean;
20

    
21
  constructor(id: string, name: string, route: string, items: Item[], icon, open: boolean) {
22
    this.id = id;
23
    this.name = name;
24
    this.route = route;
25
    this.items = items;
26
    this.icon = icon;
27
    this.open = open;
28
  }
29
}
30

    
31
export class Sidebar {
32
  items: Item[];
33
  header: Header;
34

    
35
  constructor(items: Item[], header: Header) {
36
    this.items = items;
37
    this.header = header;
38
  }
39
}
(1-1/3)