2020-02-03 16:50:18 +01:00
|
|
|
import { Component, OnInit, Input } from '@angular/core';
|
|
|
|
import { FormGroup } from '@angular/forms';
|
2021-03-09 09:04:50 +01:00
|
|
|
import { ToCEntry } from '../../dataset-description.component';
|
2020-02-03 16:50:18 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-form-composite-title',
|
|
|
|
templateUrl: './form-composite-title.component.html',
|
|
|
|
styleUrls: ['./form-composite-title.component.scss']
|
|
|
|
})
|
|
|
|
export class FormCompositeTitleComponent implements OnInit {
|
|
|
|
|
|
|
|
@Input() form: FormGroup;
|
|
|
|
@Input() isChild: Boolean = false;
|
2021-03-09 09:04:50 +01:00
|
|
|
@Input() tocentry:ToCEntry;
|
2020-02-03 16:50:18 +01:00
|
|
|
|
|
|
|
constructor() { }
|
|
|
|
|
|
|
|
ngOnInit() {
|
2021-03-09 09:04:50 +01:00
|
|
|
if(this.tocentry){
|
|
|
|
this.form = this.tocentry.form as FormGroup;
|
|
|
|
}
|
2020-02-03 16:50:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|