API Docs for:
Show:

Validator Class

Constructor

Validator

(
  • attr
)

Parameters:

Item Index

Methods

Properties

Methods

message

(
  • [attr]
)
String

Returns a validation message.

Parameters:

  • [attr] Object optional

    Any template variables.

Returns:

String:

validate

(
  • value
  • data
)
ValidationResult

Run validation.

Parameters:

  • value Array

    An array of variables.

  • data Object

Returns:

Properties

attributes

Object