X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FPDD%2Ffrontend-src%2Fsrc%2Fapp%2Ftoolbar%2Ftoolbar.component.ts;fp=example-apps%2FPDD%2Ffrontend-src%2Fsrc%2Fapp%2Ftoolbar%2Ftoolbar.component.ts;h=6423f164bc61af23f39d779fa6351635594a8c20;hb=93556d64f8727eb386792f412ed85170cb70e48d;hp=0000000000000000000000000000000000000000;hpb=5f7e757b5f667f7d9e4f3fbccaabae91ffd0feec;p=ealt-edge.git 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 index 0000000..6423f16 --- /dev/null +++ b/example-apps/PDD/frontend-src/src/app/toolbar/toolbar.component.ts @@ -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' + }, + ] + } + +}