import { OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { CreateComponent } from '../create/create.component'; /** * This is the abstract create component that can be used with Reactive forms in the create views. * This class is highly recommended to use with Reactive Forms. */ export declare abstract class ReactiveCreateComponent extends CreateComponent implements OnInit { /** * The formGroup, that is displayed. */ form: FormGroup; constructor(); /** * Public property that can be used as change detection. * @returns true if there are no changes. */ readonly disabled: boolean; /** * This method extends the CreateComponent's onChildInit method with the filling of the form part. */ ngOnInit(): void; /** * This function sets the CreateComponent's model before creating. */ beforeCreate(): void; /** * The abstract function, that needs to be implemented in the child element. This method will returns the FormGroup from the T model. * @returns FormGroup * @example * public getForm(): FormGroup { * return this.model.getFormGroup(); * } */ protected abstract getForm(): FormGroup; /** * The abstract function, that needs to be implemented in the child element. This method will transform the FormGroup into the model. * @returns void * @example * public loadModelFromForm(): void { * this.model.loadFromFormGroup(this.form); * } */ protected abstract loadModelFromForm(): void; }