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)"
|
||||
/> Multiplicity</label>
|
||||
<div [formGroup]="form">
|
||||
<label>
|
||||
<input type="checkbox" formControlName="hasCommentField" /> Comment</label>
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
<div class="row">
|
||||
|
|
|
@ -13,6 +13,7 @@ export class FieldSet extends BaseModel implements Serializable<FieldSet> {
|
|||
public title:string;
|
||||
public description:string;
|
||||
public extendedDescription:string;
|
||||
public hasCommentField:boolean;
|
||||
|
||||
fromJSONObject(item:any):FieldSet{
|
||||
|
||||
|
@ -23,6 +24,7 @@ export class FieldSet extends BaseModel implements Serializable<FieldSet> {
|
|||
this.title = item.title;
|
||||
this.description = item.description;
|
||||
this.extendedDescription = item.extendedDescription;
|
||||
this.hasCommentField = item.hasCommentField;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -32,7 +34,8 @@ export class FieldSet extends BaseModel implements Serializable<FieldSet> {
|
|||
ordinal:[this.ordinal],
|
||||
title:[this.title],
|
||||
description: [this.description],
|
||||
extendedDescription:[this.extendedDescription]
|
||||
extendedDescription:[this.extendedDescription],
|
||||
hasCommentField:[this.hasCommentField]
|
||||
});
|
||||
|
||||
let fieldsFormArray = new Array<FormGroup>();
|
||||
|
|
Loading…
Reference in New Issue