Rules
color
The field must contains a sharp char and 6 hex numbers. E.g.: #12345f.
contains
The field must contains the substring passed as first argument.
| Parameters | Type |
|---|---|
| first | string |
notContains
The field must not contains the substring passed as first argument.
| Parameters | Type |
|---|---|
| first | string |
isAlpha
The field accepts alphabetic characters only.
isAlphanumeric
The field accepts alphabetic or numeric characters only.
pattern
The field must match the specified pattern.
| Parameters | Type | Required |
|---|---|---|
| (1) Pattern | string | Yes |
| (2) RegExp Flags | string | No |
| (3) type | 'mul' | No |
| (4) Example (only for the dictionary function) | string | No |
isUrl
The field only accepts well structured urls. E.g. http://my-awesome-site.com/.
- It doesn't accept IP's.
- It accepts subdomains and urls with query strings.
len
The field must be a string with a length between a range.
| Parameters | Type | Min values |
|---|---|---|
| first | Number | 0 |
| second | Number | 0 |
number
The field must be numeric.
max
The field must be a number equal or less than the argument.
| Parameters | Type |
|---|---|
| first | Number |
min
The field must be a number equal or greater than the argument.
| Parameters | Type |
|---|---|
| first | Number |
required
The field must contain something.
← Vue