Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
KnockoutValidationStatic
Interface KnockoutValidationStatic
Index
Properties
rules
utils
Methods
addAnonymousRule
addExtender
addRule
configure
formatMessage
group
init
insertValidationMessage
localize
parseInputValidationAttributes
registerExtenders
reset
validateObservable
Properties
public
rules
:
KnockoutValidationRuleDefinitions
public
utils
:
KnockoutValidationUtils
Methods
public
addAnonymousRule
(
observable
:
KnockoutObservable
, ruleObj
:
KnockoutValidationAnonymousRuleDefinition
)
Parameters
observable:
KnockoutObservable
ruleObj:
KnockoutValidationAnonymousRuleDefinition
public
addExtender
(
ruleName
:
string
)
Parameters
ruleName:
string
public
addRule
(
observable
:
KnockoutObservable
, rule
:
KnockoutValidationRule
)
:
KnockoutObservable
Parameters
observable:
KnockoutObservable
rule:
KnockoutValidationRule
Returns
KnockoutObservable
public
configure
(
options
:
KnockoutValidationConfiguration
)
Parameters
options:
KnockoutValidationConfiguration
public
formatMessage
(
message
:
string
, params
:
string
)
:
string
Parameters
message:
string
params:
string
Returns
string
public
group
(
obj
:
any
, options
?:
any
)
:
KnockoutValidationErrors
Parameters
obj:
any
options?:
any
optional
Returns
KnockoutValidationErrors
public
init
(
options
?:
KnockoutValidationConfiguration
, force
?:
boolean
)
Parameters
options?:
KnockoutValidationConfiguration
optional
force?:
boolean
optional
public
insertValidationMessage
(
element
:
Element
)
:
Element
Parameters
element:
Element
Returns
Element
public
localize
(
msgTranslations
:
any
)
Parameters
msgTranslations:
any
public
parseInputValidationAttributes
(
element
:
Element
, valueAccessor
:
() => KnockoutObservable<any>
)
Parameters
element:
Element
valueAccessor:
() => KnockoutObservable<any>
public
registerExtenders
(
)
public
reset
(
)
public
validateObservable
(
observable
:
KnockoutObservable
)
:
boolean
Parameters
observable:
KnockoutObservable
Returns
boolean
Globals
knockout
knockout