Search
Preparing search index...
The search index is not available
react-painlessform
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"FieldValidator"
FieldValidator
Class FieldValidator<TSource, TValue, TMeta>
Type parameters
TSource
TValue
TMeta
Hierarchy
FieldValidator
Implements
IValidator
<
TSource
,
FormErrors
<
TSource
>
,
TMeta
>
Index
Constructors
constructor
Properties
name
select
Value
validator
Methods
validate
Constructors
constructor
new
Field
Validator
(
name
:
keyof TSource
, validator
:
IValidator
<
TValue
|
TSource[keyof TSource]
,
Array
<
IErrorMessage
<
any
>
>
,
TMeta
>
, selectValue
?:
function
)
:
FieldValidator
Parameters
name:
keyof TSource
validator:
IValidator
<
TValue
|
TSource[keyof TSource]
,
Array
<
IErrorMessage
<
any
>
>
,
TMeta
>
Optional
selectValue:
function
(
source
:
TSource
)
:
TValue
|
TSource[keyof TSource]
Parameters
source:
TSource
Returns
TValue
|
TSource[keyof TSource]
Returns
FieldValidator
Properties
Private
name
name
:
keyof TSource
Private
select
Value
select
Value
:
function
Type declaration
(
source
:
TSource
)
:
TValue
|
TSource[keyof TSource]
Parameters
source:
TSource
Returns
TValue
|
TSource[keyof TSource]
Private
validator
validator
:
IValidator
<
TValue
|
TSource[keyof TSource]
,
Array
<
IErrorMessage
<
any
>
>
,
TMeta
>
Methods
validate
validate
(
data
:
TSource
, meta
:
TMeta
)
:
FormErrors
<
TSource
>
Parameters
data:
TSource
meta:
TMeta
Returns
FormErrors
<
TSource
>
Globals
"
Array
Validator"
"
Field
Validator"
"
Form
Validator"
"components/
Field"
"components/
Form"
"components/
Transform"
"components/
Validation"
"helpers/form"
"helpers/form
Factory"
"index"
"interfaces/field"
"interfaces/form"
"interfaces/validation"
"tools"
Field
Validator
constructor
name
select
Value
validator
validate
create
Field
Validator
Generated using
TypeDoc