0.0.4 • Published 8 years ago
numeric-field v0.0.4
numeric-field
React component that represents a numeric input field. This takes as input ONLY digits, so no whitespace characters, commas, points, etc... This component is to be used only when digits are expected with ReactJS using JSX syntax.
Installation
npm install numeric-field --save
Usage
var NumericField = require('numeric-field');
functionToSetNumericValue: function(value) {
console.log("This is what I want to do with the value " + value);
}
render : function () {
return (
<div>
<NumericField name="My Field" setValue={this.functionToSetNumericValue} />
</div>
)
}