Search
Preparing search index...
The search index is not available
formulr - v0.3.1
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
FormBuilder
Class FormBuilder<ChildBuilders, Builder, Model>
Type parameters
ChildBuilders
:
Record
<
string
,
Builder
>
Builder
:
BasicBuilder
<
unknown
,
Model
>
Model
:
BasicModel
<
unknown
>
Hierarchy
BasicBuilder
<
$FieldSetValue
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
,
FormModel
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
>
FormBuilder
Index
Constructors
constructor
Properties
_child
Builders
_validators
phantom
Model
phantom
Value
Methods
build
validators
Constructors
constructor
new
Form
Builder
(
_childBuilders
:
ChildBuilders
)
:
FormBuilder
Parameters
_childBuilders:
ChildBuilders
Returns
FormBuilder
Properties
Private
_child
Builders
_child
Builders
:
ChildBuilders
Protected
_validators
_validators
:
IValidators
<
$FieldSetValue
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
>
= []
phantom
Model
phantom
Model
:
FormModel
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
internal
phantom
Value
phantom
Value
:
$FieldSetValue
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
internal
Methods
build
build
(
defaultValues
?:
Maybe
<
$FieldSetBuilderDefaultValue
<
ChildBuilders
>
>
)
:
FormModel
<
object
>
Parameters
Optional
defaultValues:
Maybe
<
$FieldSetBuilderDefaultValue
<
ChildBuilders
>
>
Returns
FormModel
<
object
>
validators
validators
(
...
validators
:
IValidators
<
$FieldSetValue
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
>
)
:
this
设置 builder 上的校验规则
Parameters
Rest
...
validators:
IValidators
<
$FieldSetValue
<
$FieldSetBuilderChildren
<
ChildBuilders
>
>
>
校验规则
Returns
this
Globals
Form
Builder
constructor
_child
Builders
_validators
phantom
Model
phantom
Value
build
validators
Generated using
TypeDoc