Pages.FormState
type
Event
=
InputEvent
String
|
FocusEvent
|
BlurEvent
type
alias
FieldEvent
=
{ value
:
String
, formId
:
String
, name
:
String
, event
:
Event
}
type
alias
FieldState
=
{ value
:
String
, status
:
FieldStatus
}
type
alias
FormState
=
{ fields
:
Dict
String
FieldState
, submitAttempted
:
Bool
}
type
alias
PageFormState
=
Dict
String
FormState
init
:
FormState
listeners
:
String
->
List
(
Attribute
(
Msg
userMsg))
setField
:
{ formId
:
String
, name
:
String
, value
:
String
}
->
PageFormState
->
PageFormState
setSubmitAttempted
:
String
->
PageFormState
->
PageFormState
update
:
Value
->
PageFormState
->
PageFormState
elm doc
preview
Open Files
Close Preview
README
Browse Source
ApiRoute
BackendTask
BackendTask.Env
BackendTask.File
BackendTask.Glob
BackendTask.Http
BackendTask.Port
Exception
Form
Form.Field
Form.FieldStatus
Form.FieldView
Form.FormData
Form.Validation
Form.Value
Head
Head.Seo
Pages.Fetcher
Pages.Flags
Pages.FormState
Pages.Generate
Pages.Internal.NotFoundReason
Pages.Internal.Platform
Pages.Internal.Platform.Cli
Pages.Internal.Platform.GeneratorApplication
Pages.Internal.ResponseSketch
Pages.Internal.RoutePattern
Pages.Internal.Router
Pages.Manifest
Pages.Manifest.Category
Pages.Msg
Pages.PageUrl
Pages.Script
Pages.Transition
Pages.Url
Path
QueryParams
Server.Request
Server.Response
Server.Session
Server.SetCookie