@bytesoftio/form
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Form
constructor
changed
Fields
config
dirty
Fields
errors
result
submitted
submitting
values
configure
deps
handler
listen
reset
schema
setup
Validate
OnChange
submit
validate
validator
Observable
Errors
Observable
Form
Observable
Form
Fields
Observable
Form
Values
Create
Form
Create
Form
Errors
Create
Form
Fields
Create
Form
From
Schema
Create
Form
Values
Deps
Options
Form
Callback
Form
Config
Form
Errors
Callback
Form
Handler
Form
Submit
Options
Form
Validate
Options
Form
Validator
create
Form
Type parameters
TValues
:
object
TResult
Hierarchy
Form
Implements
ObservableForm
<
TValues
,
TResult
>
Index
Constructors
constructor
Properties
changed
Fields
config
dirty
Fields
errors
result
submitted
submitting
values
Methods
configure
deps
handler
listen
reset
schema
setup
Validate
OnChange
submit
validate
validator
Constructors
constructor
new
Form
(
initialValues
:
TValues
)
:
Form
Parameters
initialValues:
TValues
Returns
Form
Properties
changed
Fields
changed
Fields
:
ObservableFormFields
config
config
:
FormConfig
<
TValues
,
TResult
>
dirty
Fields
dirty
Fields
:
ObservableFormFields
errors
errors
:
ObservableErrors
result
result
:
ObservableValue
<
TResult
|
undefined
>
submitted
submitted
:
ObservableValue
<
boolean
>
submitting
submitting
:
ObservableValue
<
boolean
>
values
values
:
ObservableFormValues
<
TValues
>
Methods
configure
configure
(
config
:
Partial
<
FormConfig
<
TValues
,
TResult
>
>
)
:
this
Parameters
config:
Partial
<
FormConfig
<
TValues
,
TResult
>
>
Returns
this
deps
deps
(
field
:
string
|
string
[]
, options
?:
DepsOptions
)
:
any
[]
Parameters
field:
string
|
string
[]
Default value
options:
DepsOptions
= {}
Returns
any
[]
handler
handler
(
handler
:
FormHandler
<
TValues
,
TResult
>
)
:
this
Parameters
handler:
FormHandler
<
TValues
,
TResult
>
Returns
this
listen
listen
(
callback
:
FormCallback
<
TValues
,
TResult
>
, notifyImmediately
?:
undefined
|
false
|
true
)
:
this
Parameters
callback:
FormCallback
<
TValues
,
TResult
>
Optional
notifyImmediately:
undefined
|
false
|
true
Returns
this
reset
reset
(
initialValues
?:
TValues
)
:
void
Parameters
Optional
initialValues:
TValues
Returns
void
schema
schema
(
handler
:
ObjectSchema
<
TValues
>
)
:
this
Parameters
handler:
ObjectSchema
<
TValues
>
Returns
this
Protected
setup
Validate
OnChange
setup
Validate
OnChange
(
)
:
void
Returns
void
submit
submit
(
options
?:
FormSubmitOptions
)
:
Promise
<
TResult
|
undefined
>
Parameters
Optional
options:
FormSubmitOptions
Returns
Promise
<
TResult
|
undefined
>
validate
validate
(
options
?:
FormValidateOptions
)
:
Promise
<
ValidationResult
|
undefined
>
Parameters
Optional
options:
FormValidateOptions
Returns
Promise
<
ValidationResult
|
undefined
>
validator
validator
(
handler
:
FormValidator
<
TValues
,
TResult
>
)
:
this
Parameters
handler:
FormValidator
<
TValues
,
TResult
>
Returns
this