pcb demo code.
[ealt-edge.git] / example-apps / PDD / frontend-src / src / app / toolbar / toolbar.component.ts
diff --git a/example-apps/PDD/frontend-src/src/app/toolbar/toolbar.component.ts b/example-apps/PDD/frontend-src/src/app/toolbar/toolbar.component.ts
new file mode 100644 (file)
index 0000000..6423f16
--- /dev/null
@@ -0,0 +1,44 @@
+import { Component, OnInit } from '@angular/core';
+import { ToolbarService } from './toolbar.service';
+
+@Component({
+  selector: 'app-toolbar',
+  templateUrl: './toolbar.component.html',
+  styleUrls: ['./toolbar.component.scss']
+})
+export class ToolbarComponent implements OnInit {
+  toolbarmenu = [];
+  menuicon: string;
+  constructor(public toolbarService: ToolbarService) { }
+
+  ngOnInit() {
+    this.menuicon = "menu";
+    this.init();
+  }
+
+  init(){
+    this.toolbarmenu = [      
+      {
+        displayName: 'EALT-EDGE',
+        route: '/home'
+      },
+      // {
+      //   displayName: 'PCB USECASE',
+      // },
+      {
+        displayName: 'USECASES',
+        children: [
+          {
+            displayName: 'PCB Defect Detection',
+            route: '/pcb'
+          }
+        ]
+      },
+      {
+        displayName: 'Akraino EALT Edge Wiki',
+        route: '/akrainowiki'
+      },
+    ]
+  }
+
+}