浏览代码

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 年之前
父节点
当前提交
f1b1e1b6b2
共有 1 个文件被更改,包括 8 次插入0 次删除
  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.
 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
 Grouping support through:  autoGroup, groupSeparator, groupSize