Created
June 2, 2015 20:58
-
-
Save ricardodovalle/57d922e360b49df6aebf to your computer and use it in GitHub Desktop.
Meteor with "bigdsk:inputmask"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Config file at "client/lib/inputmask.js" - I used this to create a new mask type | |
$.extend($.inputmask.defaults.definitions, { | |
H: { | |
validator: '[0-9a-fA-F]', | |
cardinality: 1 | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.personInsert.rendered = function() { | |
$('[name=cpf]').inputmask('999.999.999-99', { clearIncomplete: false }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment