[MNT-21705] - fixed column display for fields (#6078)

* [MNT-21705] - fixed column display for fields

* [MNT-21705] - fixed unit test

* [MNT-21636] - adding flag for enable-disable column

* [MNT-21705] - fixed broken unit test

* [MNT-21705] - added documentation for extra form input field

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
This commit is contained in:
Vito
2020-09-24 10:20:18 +01:00
committed by GitHub
parent 80a3618ca8
commit ffe04120a8
9 changed files with 68 additions and 17 deletions

View File

@@ -58,6 +58,9 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnDestro
@Input()
data: FormValues;
@Input()
enableFixedSpacedForm: boolean = true;
/** Emitted when the form is submitted with the `Save` or custom outcomes. */
@Output()
formSaved: EventEmitter<FormModel> = new EventEmitter<FormModel>();
@@ -277,7 +280,7 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnDestro
parseForm(formRepresentationJSON: any): FormModel {
if (formRepresentationJSON) {
const form = new FormModel(formRepresentationJSON, this.data, this.readOnly, this.formService);
const form = new FormModel(formRepresentationJSON, this.data, this.readOnly, this.formService, this.enableFixedSpacedForm);
if (!formRepresentationJSON.fields) {
form.outcomes = this.getFormDefinitionOutcomes(form);
}