16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
|
import { DataField } from './DataField';
|
||
|
import { FormGroup } from '@angular/forms';
|
||
|
export class TextArea extends DataField<TextArea>{
|
||
|
|
||
|
buildForm(): FormGroup {
|
||
|
let formGroup = this.formBuilder.group({
|
||
|
label: this.label
|
||
|
});
|
||
|
return formGroup;
|
||
|
}
|
||
|
|
||
|
fromJSONObject(item: any): TextArea {
|
||
|
this.label = item.label
|
||
|
return this;
|
||
|
}
|
||
|
}
|