import {AfterViewInit, Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild, TemplateRef, ViewEncapsulation} from '@angular/core'; import {Option} from './option'; import {OptionList} from './option-list'; @Component({ selector: 'select-dropdown', templateUrl: 'select-dropdown.component.html', styleUrls: ['select-dropdown.component.scss'], encapsulation: ViewEncapsulation.None }) export class SelectDropdownComponent implements AfterViewInit, OnChanges, OnInit { @Input() filterEnabled: boolean; @Input() highlightColor: string; @Input() highlightTextColor: string; @Input() left: number; @Input() multiple: boolean; @Input() notFoundMsg: string; @Input() optionList: OptionList; @Input() isBelow: boolean; @Input() top: number; @Input() width: number; @Input() placeholder: string; @Input() optionTemplate: TemplateRef; @Output() optionClicked = new EventEmitter