|
|
@@ -1,52 +1,59 @@
|
|
|
-## 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 });
|
|
|
-});
|
|
|
-```
|
|
|
-
|
|
|
-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
|
|
|
-
|
|
|
-```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 });
|
|
|
-});
|
|
|
-```
|
|
|
+# numeric extensions
|
|
|
+## aliases
|
|
|
+
|
|
|
+## Options
|
|
|
+### digits
|
|
|
+Number of fractionalDigits
|
|
|
+Default: "*"
|
|
|
+
|
|
|
+### digitsOptional
|
|
|
+Default: true
|
|
|
+
|
|
|
+### groupSize
|
|
|
+Default: 3
|
|
|
+
|
|
|
+### autoGroup
|
|
|
+Default: false
|
|
|
+
|
|
|
+### allowPlus
|
|
|
+Default: true
|
|
|
+
|
|
|
+### allowMinus
|
|
|
+Default: true
|
|
|
+
|
|
|
+### negationSymbol
|
|
|
+Default: {
|
|
|
+ front: "-", //"("
|
|
|
+ back: "" //")"
|
|
|
+}
|
|
|
+
|
|
|
+### integerDigits
|
|
|
+Number of integerDigits
|
|
|
+Default: "+"
|
|
|
+
|
|
|
+### integerOptional
|
|
|
+Default: true
|
|
|
+
|
|
|
+### prefix
|
|
|
+Default: ""
|
|
|
+
|
|
|
+### suffix
|
|
|
+Default: ""
|
|
|
+
|
|
|
+### decimalProtect
|
|
|
+Do not allow assumption of decimals input without entering the radixpoint.
|
|
|
+Default: true
|
|
|
+
|
|
|
+### min
|
|
|
+Minimum value
|
|
|
+Default: undefined
|
|
|
+
|
|
|
+### max
|
|
|
+Maximum value
|
|
|
+Default: undefined
|
|
|
+
|
|
|
+### step
|
|
|
+Default: 1
|
|
|
+
|
|
|
+### unmaskAsNumber
|
|
|
+Default: false
|