1.0.1 • Published 7 years ago
valid-me-react v1.0.1
Modern validation for modern applications.
No more form validations, with valid-me-react you can validate groups of items, independently of which form they belong to.
React sample using JSX :
import ReactDOM from 'react-dom';
import {ValidMe,forceValidation,clearAllValidationErrors,phoneTypesEnum} from 'valid-me-react';
let doHi = () => {
let areThereErrors = forceValidation(undefined, undefined, 'hi'); //validate elements belonging to group hi
console.log(areThereErrors);
if (!areThereErrors){
clearAllValidationErrors();
}
}
let handleChange = (event) => {
console.log(event.target.value);
}
ReactDOM.render((
<div>
<div>
<ValidMe validmefor="numeric" group="hi">
<input type='text' onChange={handleChange}/>
</ValidMe>
</div>
<button onClick={doHi}>
Hi
</button>
</div>
), document.getElementById('app'));
The styles available in the live-sample are on the sample-styles.css file
Extra attributes you can pass to the ValidMe element :
validmemessage validmefor validmecondition validmenocolor validmeerror validmesuccess
1.0.1
7 years ago
1.0.0
7 years ago
0.7.63
7 years ago
0.7.62
7 years ago
0.7.61
7 years ago
0.7.60
7 years ago
0.7.59
7 years ago
0.7.58
7 years ago
0.7.56
7 years ago
0.7.55
7 years ago
0.7.5
7 years ago
0.7.4
7 years ago
0.7.3
7 years ago
0.7.2
7 years ago
0.7.1
7 years ago
0.2.69
8 years ago
0.2.68
8 years ago
0.2.67
8 years ago
0.2.66
8 years ago
0.2.65
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.9
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago