hasComment field in fieldset
This commit is contained in:
parent
67aa17324c
commit
a20f9c2e01
|
@ -5,6 +5,8 @@
|
||||||
<input type="checkbox" [(ngModel)]="isMultiplicityEnabled" (ngModelChange)="onIsMultiplicityEnabledChange(isMultiplicityEnabled)"
|
<input type="checkbox" [(ngModel)]="isMultiplicityEnabled" (ngModelChange)="onIsMultiplicityEnabledChange(isMultiplicityEnabled)"
|
||||||
/> Multiplicity</label>
|
/> Multiplicity</label>
|
||||||
<div [formGroup]="form">
|
<div [formGroup]="form">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" formControlName="hasCommentField" /> Comment</label>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -13,6 +13,7 @@ export class FieldSet extends BaseModel implements Serializable<FieldSet> {
|
||||||
public title:string;
|
public title:string;
|
||||||
public description:string;
|
public description:string;
|
||||||
public extendedDescription:string;
|
public extendedDescription:string;
|
||||||
|
public hasCommentField:boolean;
|
||||||
|
|
||||||
fromJSONObject(item:any):FieldSet{
|
fromJSONObject(item:any):FieldSet{
|
||||||
|
|
||||||
|
@ -23,6 +24,7 @@ export class FieldSet extends BaseModel implements Serializable<FieldSet> {
|
||||||
this.title = item.title;
|
this.title = item.title;
|
||||||
this.description = item.description;
|
this.description = item.description;
|
||||||
this.extendedDescription = item.extendedDescription;
|
this.extendedDescription = item.extendedDescription;
|
||||||
|
this.hasCommentField = item.hasCommentField;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +34,8 @@ export class FieldSet extends BaseModel implements Serializable<FieldSet> {
|
||||||
ordinal:[this.ordinal],
|
ordinal:[this.ordinal],
|
||||||
title:[this.title],
|
title:[this.title],
|
||||||
description: [this.description],
|
description: [this.description],
|
||||||
extendedDescription:[this.extendedDescription]
|
extendedDescription:[this.extendedDescription],
|
||||||
|
hasCommentField:[this.hasCommentField]
|
||||||
});
|
});
|
||||||
|
|
||||||
let fieldsFormArray = new Array<FormGroup>();
|
let fieldsFormArray = new Array<FormGroup>();
|
||||||
|
|
Loading…
Reference in New Issue