Removed label of a repeatable field when is added a new value.

This commit is contained in:
Giuseppe Digilio
2018-07-09 19:09:41 +02:00
parent 4d89674cda
commit 1f02a4cb5b
17 changed files with 77 additions and 55 deletions

View File

@@ -7,9 +7,9 @@ import { FormFieldMetadataValueObject } from '../models/form-field-metadata-valu
export class DateFieldParser extends FieldParser {
public modelFactory(fieldValue: FormFieldMetadataValueObject): any {
public modelFactory(fieldValue?: FormFieldMetadataValueObject | any, label?: boolean): any {
let malformedDate = false;
const inputDateModelConfig: DynamicDatePickerModelConfig = this.initModel();
const inputDateModelConfig: DynamicDatePickerModelConfig = this.initModel(null, label);
inputDateModelConfig.toggleIcon = 'fa fa-calendar';
this.setValues(inputDateModelConfig as any, fieldValue);