2018-02-02 11:57:24 +01:00
|
|
|
import { TextArea } from '../../../models/DataField/TextArea';
|
|
|
|
import { FreeTextData } from '../../../models/DataField/FreeTextData';
|
|
|
|
import { CheckBoxData } from '../../../models/DataField/CheckBoxData';
|
|
|
|
import { BooleanDecisionData } from '../../../models/DataField/BooleanDecisionData';
|
|
|
|
import { FormGroup } from '@angular/forms';
|
|
|
|
import { Component, Input, OnInit } from '@angular/core';
|
|
|
|
import { FormArray } from '@angular/forms';
|
2018-05-14 08:44:35 +02:00
|
|
|
import { Field } from '../../../models/datasetProfileAdmin/Field';
|
2018-02-02 11:57:24 +01:00
|
|
|
|
|
|
|
@Component({
|
2018-10-05 17:00:54 +02:00
|
|
|
selector: 'app-textarea-component',
|
|
|
|
styleUrls: ['./textarea-component.scss'],
|
|
|
|
templateUrl: './textarea-component.html'
|
2018-02-02 11:57:24 +01:00
|
|
|
})
|
2018-05-14 08:44:35 +02:00
|
|
|
export class TextAreaComponent implements OnInit {
|
2018-10-05 17:00:54 +02:00
|
|
|
@Input() dataModel: Field;
|
|
|
|
@Input() form: FormGroup;
|
|
|
|
private data: TextArea = new TextArea();
|
2018-05-14 08:44:35 +02:00
|
|
|
|
2018-10-05 17:00:54 +02:00
|
|
|
ngOnInit() {
|
|
|
|
this.form.addControl('data', this.data.buildForm());
|
|
|
|
}
|
2018-10-02 16:33:58 +02:00
|
|
|
}
|