no message
This commit is contained in:
parent
3d8860870a
commit
7f54832319
|
@ -29,7 +29,7 @@ export class Field extends BaseModel implements Serializable<Field>,FormGenerato
|
|||
public ordinal: number;
|
||||
public visible: Visibility = new Visibility();
|
||||
public data:DataField<any>;
|
||||
public validation: ValidationTypes;
|
||||
public validations: Array<ValidationTypes>;
|
||||
|
||||
fromJSONObject(item:any):Field{
|
||||
this.id = item.id;
|
||||
|
@ -38,7 +38,7 @@ export class Field extends BaseModel implements Serializable<Field>,FormGenerato
|
|||
this.page = item.page;
|
||||
// this.multiplicity = new JsonSerializer<Multiplicity>().fromJSONObject(item.multiplicity, Multiplicity);
|
||||
this.ordinal = item.ordinal;
|
||||
this.validation = item.validation;
|
||||
this.validations = item.validations;
|
||||
this.viewStyle = new JsonSerializer<ViewStyle>().fromJSONObject(item.viewStyle, ViewStyle);
|
||||
this.visible = new JsonSerializer<Visibility>().fromJSONObject(item.visible, Visibility);
|
||||
if(item.data) {
|
||||
|
@ -62,10 +62,9 @@ export class Field extends BaseModel implements Serializable<Field>,FormGenerato
|
|||
title: [this.title],
|
||||
page:[this.page] ,
|
||||
ordinal:[this.ordinal],
|
||||
validation:[this.validation]
|
||||
validations:[this.validations]
|
||||
});
|
||||
|
||||
|
||||
//formGroup.addControl("multiplicity", this.multiplicity.buildForm());
|
||||
formGroup.addControl("defaultValue", this.defaultValue.buildForm());
|
||||
formGroup.addControl("viewStyle", this.viewStyle.buildForm());
|
||||
|
|
Loading…
Reference in New Issue