1 import {Component, Input, Host, OnInit} from '@angular/core';
2 import {ComboboxComponent} from './combobox.component';
5 selector: 'eg-combobox-entry',
6 template: '<ng-template></ng-template>'
8 export class ComboboxEntryComponent implements OnInit {
10 @Input() entryId: any;
11 @Input() entryLabel: string;
12 @Input() selected: boolean;
14 constructor(@Host() private combobox: ComboboxComponent) {}
18 this.combobox.startId = this.entryId;
20 this.combobox.addEntry(
21 {id: this.entryId, label: this.entryLabel});