import { OnInit } from '@angular/core'; import { QuestionBase } from '../../domain/question.base'; import { ScrollService } from '../scroll.service'; import { ListQuestionComponent } from "../list-question.component"; import { ApiService } from "../api.service"; import { Datasource } from "../../domain/datasource"; export declare class DropdownQuestionComponent extends ListQuestionComponent implements OnInit { private scrollService; protected apiService: ApiService; form: any; question: QuestionBase; input: any; type: string; initialised: boolean; /** * The original options which may need to be used as a base * to filter if this question is subscribed to the value of another question. */ currentFilter: any[]; constructor(scrollService: ScrollService, apiService: ApiService); ngOnInit(): Promise; mapData(result: any[], datasource: Datasource): void; getSelected(optValue: string): string; readonly optionsPopulated: boolean; readonly isInvalid: any; readonly show: boolean; readonly alert: any; readonly answerValue: any; /** * Filter out question options based on the value of other form fields * @param CardOption[] options */ private filterQuestionOptions; /** * If there is currently a value in this dropdown then return its index within the * current question.options * @return number valueIdx */ private getOptionValueIdx; private setSubscriptions; }