File

src/question/select.service.ts

Index

Methods

Methods

Public onChangeOption
onChangeOption(htmlFormControl: HTMLInputElement, formControl: FormControl, question: Select)
Parameters :
Name Type Optional Description
htmlFormControl HTMLInputElement
formControl FormControl
question Select
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;
    }
  }
}

results matching ""

    No results matching ""