Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview

Defines that value of field must be in range definied by options.

Attributes

name

type

required

default value

description

from

string

no

none

Minimum value.

to

string

no

none

Maximum value.

exclusively

boolean

no

false

If 'false', when the value is same as 'from' or 'to', validator will accept.

message

string

no

none

Message that will be displayed in case of error.

Example

<validatesRange from="1" to="10" />
<validatesRange from="0" exclusively="true" message="error.value.must.be.positive"/>
<validatesRange from="aa" to="bz" />
  • No labels