@bytesoftio/form
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Form
Observable
Errors
Observable
Form
changed
Fields
config
dirty
Fields
errors
result
submitted
submitting
values
configure
deps
handler
listen
reset
schema
submit
validate
validator
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
TValue
:
object
TResult
Hierarchy
ObservableForm
Implemented by
Form
Index
Properties
changed
Fields
config
dirty
Fields
errors
result
submitted
submitting
values
Methods
configure
deps
handler
listen
reset
schema
submit
validate
validator
Properties
changed
Fields
changed
Fields
:
ObservableFormFields
config
config
:
FormConfig
<
TValue
,
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
<
TValue
>
Methods
configure
configure
(
config
:
Partial
<
FormConfig
<
TValue
,
TResult
>
>
)
:
this
Parameters
config:
Partial
<
FormConfig
<
TValue
,
TResult
>
>
Returns
this
deps
deps
(
field
:
string
|
string
[]
, options
?:
DepsOptions
)
:
any
[]
Parameters
field:
string
|
string
[]
Optional
options:
DepsOptions
Returns
any
[]
handler
handler
(
handler
:
FormHandler
<
TValue
,
TResult
>
)
:
this
Parameters
handler:
FormHandler
<
TValue
,
TResult
>
Returns
this
listen
listen
(
callback
:
FormCallback
<
TValue
,
TResult
>
, notifyImmediately
?:
undefined
|
false
|
true
)
:
this
Parameters
callback:
FormCallback
<
TValue
,
TResult
>
Optional
notifyImmediately:
undefined
|
false
|
true
Returns
this
reset
reset
(
initialValues
?:
TValue
)
:
void
Parameters
Optional
initialValues:
TValue
Returns
void
schema
schema
(
handler
:
ObjectSchema
<
TValue
>
)
:
this
Parameters
handler:
ObjectSchema
<
TValue
>
Returns
this
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
<
TValue
,
TResult
>
)
:
this
Parameters
handler:
FormValidator
<
TValue
,
TResult
>
Returns
this