react-numeral-input
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "react-numeral-input", | ||
"description": "numeral input", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Bingo Yang <blackbing@gmail.com>", | ||
@@ -6,0 +6,0 @@ "browserify": { |
@@ -7,2 +7,3 @@ # react-numeral-input | ||
[![react-numeral-input](http://i.imgur.com/7eUVb7z.gif)](http://i.imgur.com/7eUVb7z.gif) | ||
# Dependency | ||
@@ -29,2 +30,27 @@ | ||
# complete example | ||
```jsx | ||
let NumeralInput = require('react-numeral-input'); | ||
module.exports = React.createClass({ | ||
getInitialState() { | ||
return { | ||
numeralVal: 1000000 | ||
} | ||
}, | ||
onChange(val){ | ||
this.setState( {numeralVal:val}); | ||
}, | ||
render() { | ||
return ( | ||
<NumeralInput | ||
value={this.state.numeralVal} | ||
className="form-control" | ||
placeholder="" | ||
onChange={this.onChange} /> | ||
) | ||
} | ||
}); | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6156
55