field: remove struct
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2025-07-22 21:36:32 +02:00
commit 15af2edeb3
Signed by: deblan
GPG key ID: 579388D585F70417

View file

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