field: remove struct
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
35c01fa7ca
commit
15af2edeb3
1 changed files with 0 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue