|
- import { Component, OnInit } from '@angular/core';
- import {ICalendarLegend} from '../../model/entities/calendar-legend';
-
- @Component({
- selector: 'app-calendar-legend',
- templateUrl: './calendar-legend.component.html',
- styleUrls: ['./calendar-legend.component.scss']
- })
- export class CalendarLegendComponent implements OnInit {
-
- public legendEntries: ICalendarLegend[];
-
- constructor() { }
-
- ngOnInit() {
- // this.legendEntries = [];
- this.legendEntries = [
- {id: 1, type: 'customer', name: 'Kunden'},
- {id: 2, type: 'operator', name: 'Betreiber'},
- {id: 3, type: 'internal', name: 'Intern'},
- {id: 4, type: 'production', name: 'Produzenten'},
- {id: 5, type: 'service', name: 'Service'},
- ];
- }
-
- /**
- *
- * @param legendEntries
- */
- public setData(legendEntries: []): void {
- // this.legendEntries = legendEntries;
- }
-
- }
|