import {Component, Input, ViewChild} from '@angular/core'; import {ShowOptions} from './claimHelper.class'; import {MatSelect} from "@angular/material/select"; @Component({ selector: 'claim-enities-selection', template:` Research outcomes Projects Research communities `, }) export class ClaimEntitiesSelectionComponent{ @ViewChild(MatSelect) matSelect: MatSelect; @Input() showOptions:ShowOptions = new ShowOptions(); open() { if (this.matSelect && !this.matSelect.focused) { this.matSelect.open(); } } }