diff --git a/formular.dto.ts b/formular.dto.ts index 0f2e659..3d07852 100644 --- a/formular.dto.ts +++ b/formular.dto.ts @@ -4,7 +4,7 @@ export class Formular { public minitext: string; public ispublic: boolean; public multiple: boolean; - public fields: Field[]; + public fields: MyField[]; } export enum FieldType { @@ -21,7 +21,7 @@ export enum FieldType { TEXTAREA = "textarea" } -export class Field { +export class MyField { id?: number; formular: number; name: string; @@ -30,7 +30,8 @@ export class Field { displayvalue?: string | null; placeholder?: string | null; type: FieldType; - title?: string | null; required: boolean; + title?: string | null; + required: boolean; maxlength?: number | null; min?: number | null; max?: number | null;