Browse Source

Add info about integerDigits feature

I've not been able to find any documentation about the integerDigits feature: however it was mentioned in the issue tracker and so I was able to use it. 
I thought it could be a good idea to add an example here.
insac 10 years ago
parent
commit
f1b1e1b6b2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      README_numeric.md

+ 8 - 0
README_numeric.md

@@ -24,6 +24,14 @@ $(document).ready(function(){
 });
 ```
 
+Define the number of digits before the radixpoint
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask("decimal", { integerDigits: 5 });
+});
+```
+
 When TAB out of the input the digits autocomplate with 0 if the digits option is given a valid number.
 
 Grouping support through:  autoGroup, groupSeparator, groupSize