Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
breeze
Validator
Class Validator
Index
Constructor methods
constructor
Properties
context
messageTemplates
name
Methods
bool
byte
date
duration
getMessage
guid
int16
int32
int64
maxLength
number
register
registerFactory
required
string
stringLength
validate
Constructor methods
constructor
(
name
:
string
, validatorFn
:
ValidatorFunction
, context
?:
any
)
:
Validator
Parameters
name:
string
validatorFn:
ValidatorFunction
context?:
any
optional
Returns
Validator
Properties
public
context
:
any
public
static
messageTemplates
:
any
public
name
:
string
Methods
public
static
bool
(
)
:
Validator
Returns
Validator
public
static
byte
(
)
:
Validator
Returns
Validator
public
static
date
(
)
:
Validator
Returns
Validator
public
static
duration
(
)
:
Validator
Returns
Validator
public
getMessage
(
)
:
string
Returns
string
public
static
guid
(
)
:
Validator
Returns
Validator
public
static
int16
(
)
:
Validator
Returns
Validator
public
static
int32
(
)
:
Validator
Returns
Validator
public
static
int64
(
)
:
Validator
Returns
Validator
public
static
maxLength
(
context
:
{ maxLength: number; }
)
:
Validator
Parameters
context:
{ maxLength: number; }
Returns
Validator
public
static
number
(
)
:
Validator
Returns
Validator
public
static
register
(
validator
:
Validator
)
Parameters
validator:
Validator
public
static
registerFactory
(
fn
:
() => breeze.Validator
, name
:
string
)
Parameters
fn:
() => breeze.Validator
name:
string
public
static
required
(
)
:
Validator
Returns
Validator
public
static
string
(
)
:
Validator
Returns
Validator
public
static
stringLength
(
context
:
{ maxLength: number; minLength: number; }
)
:
Validator
Parameters
context:
{ maxLength: number; minLength: number; }
Returns
Validator
public
validate
(
value
:
any
, context
?:
any
)
:
ValidationError
Parameters
value:
any
context?:
any
optional
Returns
ValidationError
Globals
breeze
breeze.config
breeze.core
jquery
q
DataType
EntityAction
EntityState
FetchStrategy
FilterQueryOp
MergeStrategy
metadataVersion
remoteAccess_odata
remoteAccess_webApi
version
ComplexObject
DataPropertyOptions
DataServiceOptions
Entity
EntityByKeyResult
EntityManagerOptions
EntityManagerProperties
EntityTypeOptions
EntityTypeProperties
ExecuteQueryErrorCallback
ExecuteQuerySuccessCallback
IProperty
IStructuralType
MetadataStoreOptions
NamingConventionOptions
NavigationPropertyOptions
NodeContext
OrderByClause
PredicateMethod
QueryContext
QueryOptionsConfiguration
QueryResult
SaveChangesErrorCallback
SaveChangesSuccessCallback
SaveOptionsConfiguration
SaveResult
ValidationOptionsConfiguration
ValidatorFunction
ValidatorFunctionContext
AutoGeneratedKeyType
ComplexAspect
ComplexType
DataProperty
DataService
DataServiceAdapter
DataTypeSymbol
EntityActionSymbol
EntityAspect
EntityChangedEvent
EntityChangedEventArgs
EntityKey
EntityManager
EntityQuery
EntityStateSymbol
EntityType
FilterQueryOpSymbol
HasChangesChangedEvent
HasChangesChangedEventArgs
JsonResultsAdapter
LocalQueryComparisonOptions
MetadataStore
NamingConvention
NavigationProperty
Predicate
PropertyChangedEvent
PropertyChangedEventArgs
QueryOptions
SaveOptions
StrategySymbol
ValidationError
ValidationErrorsChangedEvent
ValidationErrorsChangedEventArgs
ValidationOptions
Validator
constructor
context
messageTemplates
name
bool
byte
date
duration
getMessage
guid
int16
int32
int64
maxLength
number
register
registerFactory
required
string
stringLength
validate