Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Commit 9bbfd80

Browse files
committed
📝 docs(gitbook): add built-in validator section
1 parent 1d9900c commit 9bbfd80

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

gitbook/en/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
- [Getting Started](started.md)
99
- [Validation With Component](validate.md)
1010
- [Validation Results](results.md)
11+
- [Built-in Validators](validators.md)

gitbook/en/validators.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Built-in validators
2+
3+
You can use any of the built-in validators listed below:
4+
5+
- `required`: whether the value has been specified
6+
- `pattern`: whether the value suffice the pattern of the regular expression
7+
- `minlength`: whether the length of the specified value is more than or equal to a minimum length
8+
- `maxlength`: whether the length of the specified value is less than or equal to a maximum length
9+
- `min`: whether the specified numerical value is more than or equal to a minimum
10+
- `max`: whether the specified numerical value is less than or equal to a maximum
11+
12+
See more about [API section](/api.html#buildin-validators).

0 commit comments

Comments
 (0)