import {Component, Input, ViewChild} from '@angular/core'; import {ShowOptions} from './claimHelper.class'; import {MatSelect} from "@angular/material/select"; import {OpenaireEntities} from "../../utils/properties/searchFields"; @Component({ selector: 'claim-enities-selection', template:` {{openaireEntities.RESULTS}} {{openaireEntities.PROJECTS}} {{openaireEntities.COMMUNITIES}} `, }) export class ClaimEntitiesSelectionComponent{ @ViewChild(MatSelect) matSelect: MatSelect; @Input() showOptions:ShowOptions = new ShowOptions(); public openaireEntities = OpenaireEntities; open() { if (this.matSelect && !this.matSelect.focused) { this.matSelect.open(); } } }