Project

General

Profile

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

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

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

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

    
37
  constructor(items: Item[], header: Header) {
38
    this.items = items;
39
    this.header = header;
40
  }
41
}
(1-1/2)