You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A customized validatorjs library to validate the react forms. This library is extended version of [validatorjs](https://www.npmjs.com/package/validatorjs).
4
+
5
+
*[Supported Rules](https://www.npmjs.com/package/validatorjs#available-rules) (It is supports all validatorjs)
6
+
*[Documentation]()
7
+
*[Demo]()
8
+
9
+
#### Usage
10
+
11
+
[Click here]() to see the usage and its example
12
+
13
+
#### Custom attribute name
14
+
15
+
Refer the below example to override the attribute name
16
+
17
+
```html
18
+
<input
19
+
type="text"
20
+
name="customer_name"
21
+
onBlur={this.form.handleBlurEvent}
22
+
onChange={this.form.handleFieldsChange}
23
+
value={this.state.fields.customer_name}
24
+
data-attribute-name="CUSTOMER NAME"
25
+
/>
26
+
```
27
+
28
+
The output will be like, "The CUSTOMER NAME field is required."
0 commit comments