argos/dmp-frontend/src/app/models/DataField/CheckBoxData.ts

17 lines
358 B
TypeScript
Raw Normal View History

import { DataField } from './DataField';
import { FormGroup } from '@angular/forms';
2018-10-05 17:00:54 +02:00
export class CheckBoxData extends DataField<CheckBoxData> {
2018-10-05 17:00:54 +02:00
buildForm(): FormGroup {
const formGroup = this.formBuilder.group({
label: this.label
});
return formGroup;
}
2018-10-05 17:00:54 +02:00
fromJSONObject(item: any): CheckBoxData {
this.label = item.label;
return this;
}
}