Browse Source

add missing files

Robin Herbots 10 years ago
parent
commit
c368e1071e
3 changed files with 655 additions and 598 deletions
  1. 44 0
      README_Numeric.md
  2. 10 0
      README_Regex.md
  3. 601 598
      js/inputmask.numeric.extensions.js

+ 44 - 0
README_Numeric.md

@@ -0,0 +1,44 @@
+## numeric extensions
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask("decimal");
+   $(selector).inputmask("decimal", { allowMinus: false });
+   $(selector).inputmask("integer");
+});
+```
+
+Define the radixpoint
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask("decimal", { radixPoint: "," });
+});
+```
+
+Define the number of digits after the radixpoint
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask("decimal", { digits: 3 });
+});
+```
+
+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
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask("decimal", { radixPoint: ",", autoGroup: true, groupSeparator: ".", groupSize: 3 });
+});
+```
+
+Allow minus and/or plus symbol
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask("decimal", { allowMinus: false });
+   $(selector).inputmask("integer", { allowMinus: false, allowPlus: true });
+});
+```

+ 10 - 0
README_Regex.md

@@ -0,0 +1,10 @@
+## regex extensions
+With the regex extension you can use any regular expression as a mask.  Currently this does only input restriction.<br>There is no further masking visualization.
+
+Example simple email regex:
+
+```javascript
+$(document).ready(function(){
+   $(selector).inputmask('Regex', { regex: "[a-zA-Z0-9._%-]+@[a-zA-Z0-9-]+\\.[a-zA-Z]{2,4}" });
+});
+```

File diff suppressed because it is too large
+ 601 - 598
js/inputmask.numeric.extensions.js