Show:

Validation class that goes as 'validation' on column data.

Methods

validateValue

(
  • value
  • record
  • [validations]
)
Array

Method to validate a value on record.

Parameters:

  • value Any

    Value to validate.

  • record Class

    Record to validate on.

  • [validations] Array optional

    Optional override of the validations to run.

Returns:

Array:

Returns an array with 1st element as a boolean which says whether validations passed or not, 2nd element is the invalid message if it failed.

Properties

ColumnDataValidationsMap

Unknown static

Column Data Validation Types Map.

mandatory

Boolean

Boolean to denote whether the property is mandatory or not.

validate

Boolean private

validations

Array

Array of validations to run. Passed as objects while creating.