From 15af2edeb37c8280dfcbff67d242a39622d7d012 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 22 Jul 2025 21:36:32 +0200 Subject: [PATCH] field: remove struct --- content/docs/fields/_index.md | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/content/docs/fields/_index.md b/content/docs/fields/_index.md index a32a920..459fec1 100644 --- a/content/docs/fields/_index.md +++ b/content/docs/fields/_index.md @@ -6,28 +6,6 @@ weight: 4 A field represents a field in a form. -## Struct - -```golang -type Field struct { - Name string - Widget string - Data any - Options []*Option - Children []*Field - Constraints []validation.Constraint - Errors []validation.Error - PrepareView func() map[string]any - BeforeMount func(data any) (any, error) - BeforeBind func(data any) (any, error) - Validate func(f *Field) bool - IsSlice bool - IsFixedName bool - Form *Form - Parent *Field -} -``` - ## Fields ```golang