ソースを参照

write a global function for onKeyValidation fix #1111

Robin Herbots 10 年 前
コミット
5faddf03f8
2 ファイル変更17 行追加0 行削除
  1. 5 0
      CHANGELOG.md
  2. 12 0
      README.md

+ 5 - 0
CHANGELOG.md

@@ -11,6 +11,11 @@ All notable changes to this project will be documented in this file.
 - fix for bower package
 
 ### Fixed
+- write a global function for onKeyValidation #1111
+- NumericInput Causes err #856
+- Certain phones not inputable #758
+- I have a problems with mask input, I can't input Ukraine phone +380(XX)XXX-XX-XX #1050
+- you can't write ukraine number to phone field +380999999999 #1019
 - autoUnmask not work in newest release #1109
 - Definition {_} throws an exception #1106 => update readme
 - Uncaught TypeError for "percentage" alias #1108

+ 12 - 0
README.md

@@ -406,6 +406,18 @@ Once defined, you can call the alias by:
  $(selector).inputmask("myNum");
 ```
 
+All callbacks are implemented as options.  This means that you can set general implementations for the callbacks by setting a default.
+
+```javascript
+Inputmask.extendDefaults({
+    onKeyValidation: function(result){
+                        if (!result){
+                            alert('Your input is not valid')
+                          }
+                    }
+});
+```
+
 ## Methods:
 ### mask
 Create a mask for the input.