Skip to content

range

Validator checks if value is between minimum and maximum option.

Parameters

min

int|float Option represents minimum value.

max

int|float Option represents maximum value.

float

bool Option is optional and represents information if float options are allowed. If not passed or false, min and max must be type of integer.

Example

source
{
    "type" : "range",
    "options": {
        "min" : 10.50,
        "max" : 50.50,
        "float" : true
    }
}