Home Reference Source
import {ValidationChecker} from 'formiojs/src/validator/Validator.js'
public class | source

ValidationChecker

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

check: *

public

config: *

public

validators: {"required": *, "onlyAvailableItems": *, "unique": *, "multiple": *, "select": *, "min": *, "max": *, "minSelectedCount": *, "maxSelectedCount": *, "minLength": *, "maxLength": *, "maxWords": *, "minWords": *, "email": *, "url": *, "date": *, "day": *, "pattern": *, "json": *, "mask": *, "custom": *, "maxDate": *, "minDate": *, "minYear": *, "maxYear": *, "calendar": *, "time": *}

Method Summary

Public Methods
public

checkComponent(component: *, data: *, row: *, includeWarnings: boolean, async: boolean): *

public

checkRule(component: *, validation: *, data: *, row: *, values: *, async: *): *

public

checkValidations(component: *, validations: *, data: *, row: *, values: *): any[]

Use the new validations engine to evaluate any errors.

public

checkValidator(component: *, validator: *, setting: *, value: *, data: *, index: *, row: *, async: *): *

public

each()

public

get()

public

has()

public

validate(component: *, validatorName: *, value: *, data: *, index: *, row: *, async: *, conditionallyVisible: *): *

Public Constructors

public constructor() source

Public Members

public get check: * source

public config: * source

public validators: {"required": *, "onlyAvailableItems": *, "unique": *, "multiple": *, "select": *, "min": *, "max": *, "minSelectedCount": *, "maxSelectedCount": *, "minLength": *, "maxLength": *, "maxWords": *, "minWords": *, "email": *, "url": *, "date": *, "day": *, "pattern": *, "json": *, "mask": *, "custom": *, "maxDate": *, "minDate": *, "minYear": *, "maxYear": *, "calendar": *, "time": *} source

Public Methods

public checkComponent(component: *, data: *, row: *, includeWarnings: boolean, async: boolean): * source

Params:

NameTypeAttributeDescription
component *
data *
row *
includeWarnings boolean
  • optional
  • default: false
async boolean
  • optional
  • default: false

Return:

*

public checkRule(component: *, validation: *, data: *, row: *, values: *, async: *): * source

Params:

NameTypeAttributeDescription
component *
validation *
data *
row *
values *
async *

Return:

*

public checkValidations(component: *, validations: *, data: *, row: *, values: *): any[] source

Use the new validations engine to evaluate any errors.

Params:

NameTypeAttributeDescription
component *
validations *
data *
row *
values *

Return:

any[]

public checkValidator(component: *, validator: *, setting: *, value: *, data: *, index: *, row: *, async: *): * source

Params:

NameTypeAttributeDescription
component *
validator *
setting *
value *
data *
index *
row *
async *

Return:

*

public each() source

public get() source

public has() source

public validate(component: *, validatorName: *, value: *, data: *, index: *, row: *, async: *, conditionallyVisible: *): * source

Params:

NameTypeAttributeDescription
component *
validatorName *
value *
data *
index *
row *
async *
conditionallyVisible *

Return:

*