Search
Preparing search index...
The search index is not available
zent
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ZentForm
Class ZentForm<T>
Type parameters
T
:
Record
<
string
,
BasicModel
<
unknown
>
>
Hierarchy
ZentForm
Implements
IForm
<
T
>
Index
Constructors
constructor
Properties
dispatch
inner
state
submit$
Accessors
ctx
is
Submitting
model
Methods
get
Value
initialize
is
Valid
is
Validating
patch
Value
reset
Value
submit
submit
Error
submit
Start
submit
Success
validate
Constructors
constructor
new
Zent
Form
(
inner
:
IForm
<
T
>
, state
:
IFormState
, dispatch
:
function
)
:
ZentForm
internal
Parameters
inner:
IForm
<
T
>
state:
IFormState
dispatch:
function
(
action
:
IFormAction
)
:
void
Parameters
action:
IFormAction
Returns
void
Returns
ZentForm
Properties
Private
dispatch
dispatch
:
function
internal
Type declaration
(
action
:
IFormAction
)
:
void
Parameters
action:
IFormAction
Returns
void
inner
inner
:
IForm
<
T
>
state
state
:
IFormState
internal
submit$
submit$
:
Subject
<
FormEvent
<
Element
>
>
= new Subject<FormEvent | undefined>()
internal
Accessors
ctx
get
ctx
(
)
:
IFormContext
Returns
IFormContext
is
Submitting
get
isSubmitting
(
)
:
boolean
Returns
boolean
model
get
model
(
)
:
FormModel
<
T
>
Returns
FormModel
<
T
>
Methods
get
Value
get
Value
(
)
:
object
Returns
object
initialize
initialize
(
value
:
$FieldSetValue
<
T
>
)
:
void
Parameters
value:
$FieldSetValue
<
T
>
Returns
void
is
Valid
is
Valid
(
)
:
boolean
Returns
boolean
is
Validating
is
Validating
(
)
:
boolean
Returns
boolean
patch
Value
patch
Value
(
value
:
$FieldSetValue
<
T
>
)
:
void
Parameters
value:
$FieldSetValue
<
T
>
Returns
void
reset
Value
reset
Value
(
)
:
void
Returns
void
submit
submit
(
e
?:
SyntheticEvent
)
:
void
<button onClick={form.submit}>submit<
/button>
Parameters
Optional
e:
SyntheticEvent
Returns
void
submit
Error
submit
Error
(
error
:
any
)
:
void
Parameters
error:
any
Returns
void
submit
Start
submit
Start
(
)
:
void
Returns
void
submit
Success
submit
Success
(
)
:
void
Returns
void
validate
validate
(
option
?:
ValidateOption
)
:
Promise
<
any
>
Parameters
Default value
option:
ValidateOption
= ValidateOption.Default
Returns
Promise
<
any
>
Globals
Zent
Form
constructor
dispatch
inner
state
submit$
ctx
is
Submitting
model
get
Value
initialize
is
Valid
is
Validating
patch
Value
reset
Value
submit
submit
Error
submit
Start
submit
Success
validate
Generated using
TypeDoc