浏览代码

add extra options as reminders of todo

Robin Herbots 12 年之前
父节点
当前提交
8cfeb05257
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      js/jquery.inputmask.numeric.extensions.js

+ 8 - 1
js/jquery.inputmask.numeric.extensions.js

@@ -17,13 +17,20 @@ Optional extensions on the jquery.inputmask base
             greedy: false,
             numericInput: false,
             isNumeric: true,
-            digits: "*", //numer of digits
+            digits: "*", //number of fractionalDigits
             groupSeparator: "",//",", // | "."
             radixPoint: ".",
             groupSize: 3,
             autoGroup: false,
             allowPlus: true,
             allowMinus: true,
+            //todo
+            integerDigits: "*", //number of integerDigits
+            defaultValue: "",
+            prefix: "",
+            suffix: "",
+            
+            //todo
             getMaskLength: function (buffer, greedy, repeat, currentBuffer, opts) { //custom getMaskLength to take the groupSeparator into account
                 var calculatedLength = buffer.length;