src/question/select.service.ts
Methods |
|
Public onChangeOption | ||||||||||||||||
onChangeOption(htmlFormControl: HTMLInputElement, formControl: FormControl, question: Select)
|
||||||||||||||||
Defined in src/question/select.service.ts:7
|
||||||||||||||||
Parameters :
Returns :
void
|
import { FormControl } from '@angular/forms';
import { Select } from '.';
export class SelectService {
public static onChangeOption(htmlFormControl: HTMLInputElement, formControl: FormControl, question: Select): void {
if (htmlFormControl.value === question.editableOption) {
formControl.setValue(null);
htmlFormControl.value = question.editableOption;
}
}
}