Show:

Methods

validate
(
  • value
  • options
  • model
  • attribute
)

Defined in addon/length.js:10

Parameters:

  • value Any
  • options Object
    • allowNone Boolean

      If true, skips validation if the value is null or undefined. Default: true

    • allowBlank Boolean

      If true, skips validation if the value is empty

    • useBetweenMessage Boolean

      If true, uses the between error message when max and min are both set

    • is Number

      The exact length the value can be

    • min Number

      The minimum length the value can be

    • max Number

      The maximum length the value can be

  • model Object
  • attribute String