Skip to content

Commit 9def8c4

Browse files
committed
- Fixed #1, #7, #8, #9
- Support decimals - Support changing thousandSeparator to ',' - Updated complete code to ES6 - Added propTypes validation
1 parent f9f7aca commit 9def8c4

File tree

8 files changed

+716
-364
lines changed

8 files changed

+716
-364
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Or get compiled development and production version from ./dist
1717
### Props
1818
| Props | Options | Default | Description |
1919
| ------------- |-------------| -----| -------- |
20-
| thousandSeparator | Boolean: true/false | false | Add thousand separators on number |
20+
| thousandSeparator | mixed: true/false (boolean) or ,/. (string) | false | Add thousand separators on number |
21+
| decimalSeperator | mixed: ./, (string) or true/false (boolean)| . | Suppor decimal point on a number |
2122
| prefix | String (ex : $) | none | Add a prefix before the number |
2223
| suffix | String (ex : /-) | none | Add a prefix after the number |
2324
| value | Number | null | Give initial value to number format |
@@ -78,6 +79,14 @@ Output : 4111 1111 1111 1111
7879
### Live Demo
7980
[http://codepen.io/s-yadav/pen/bpKNMa](http://codepen.io/s-yadav/pen/bpKNMa)
8081

82+
### Major Updates
83+
### v1.0.0
84+
- Support decimals
85+
- Support changing thousandSeparator to ','
86+
- Updated complete code to ES6
87+
- Added propTypes validation
88+
- Fixed #1, #7, #8, #9
89+
8190
### Development
8291
- Download the zip
8392
- `npm install`

0 commit comments

Comments
 (0)