From 7a379bf72e1969184e1369d0674b5bf20144bb44 Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 20 Mar 2026 11:54:51 +0100 Subject: [PATCH] Improved Formular --- formular.dto.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;