hasComment field in fieldset

This commit is contained in:
annampak 2018-01-03 15:42:20 +02:00
parent 67aa17324c
commit a20f9c2e01
2 changed files with 6 additions and 1 deletions

View File

@ -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">

View File

@ -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>();