Updated API

This commit is contained in:
Semigradsky 2015-04-29 16:36:09 +03:00
parent f168b53a10
commit 7ef6c51f1f
1 changed files with 24 additions and 6 deletions

30
API.md
View File

@ -565,6 +565,18 @@ Returns true if the value is thruthful
```
Return true if it is an email
**isUrl**
```html
<MyInputComponent name="foo" validations="isUrl"/>
```
Return true if it is an url
**isExisty**
```html
<MyInputComponent name="foo" validations="isExisty"/>
```
Returns true if the value is not undefined or null
**isUndefined**
```html
<MyInputComponent name="foo" validations="isUndefined"/>
@ -583,6 +595,12 @@ Returns true if the value is an empty string
```
Returns true if the value is the boolean true
**isFalse**
```html
<MyInputComponent name="foo" validations="isFalse"/>
```
Returns true if the value is the boolean false
**isNumeric**
```html
<MyInputComponent name="foo" validations="isNumeric"/>
@ -607,12 +625,6 @@ Returns true if string is only letters, including spaces and tabs
```
Returns true if string is only letters, including special letters (a-z,ú,ø,æ,å)
**isLength**
```html
<MyInputComponent name="foo" validations="isLength:8"/>
```
Returns true if the value length is the equal.
**equals:value**
```html
<MyInputComponent name="foo" validations="equals:4"/>
@ -626,6 +638,12 @@ Return true if the value from input component matches value passed (==).
```
Return true if the value from input component matches value passed (==).
**isLength:length**
```html
<MyInputComponent name="foo" validations="isLength:8"/>
```
Returns true if the value length is the equal.
**minLength:length**
```html
<MyInputComponent name="number" validations="minLength:1"/>