Options
Menu

Return true only for these conditions if "Exclusive" is false, then the instance is valid if it is lower than, or equal to, the value of "maximum"; if "Exclusive" is true, the instance is valid if it is strictly lower than the value of "maximum".

@require underscore

Index

Constructor methods

Properties

Methods

Constructor methods

constructor

  • constructor(Max?: number, Exclusive?: boolean): MaxValidator
  • Default constructor

    Parameters

    • Max?: number optional
      • the value of "maximum"
    • Exclusive?: boolean optional
      • true = strictly lower, otherwise lower or equal to the value of "maximum";

    Returns MaxValidator

Properties

Exclusive

Exclusive: boolean

Max

Max: number

tagName

tagName: string

Methods

isAcceptable

  • isAcceptable(s: any): boolean
  • Parameters

    • s: any

    Returns boolean

Generated using TypeDoc