1.0.1 • Published 8 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
8 years ago
1.0.0
8 years ago
0.7.63
8 years ago
0.7.62
8 years ago
0.7.61
8 years ago
0.7.60
8 years ago
0.7.59
8 years ago
0.7.58
8 years ago
0.7.56
8 years ago
0.7.55
8 years ago
0.7.5
8 years ago
0.7.4
8 years ago
0.7.3
8 years ago
0.7.2
8 years ago
0.7.1
8 years ago
0.2.69
10 years ago
0.2.68
10 years ago
0.2.67
10 years ago
0.2.66
10 years ago
0.2.65
10 years ago
0.2.6
10 years ago
0.2.5
10 years ago
0.2.4
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago