Skip to content

Instantly share code, notes, and snippets.

@ricardodovalle
Created June 2, 2015 20:58
Show Gist options
  • Save ricardodovalle/57d922e360b49df6aebf to your computer and use it in GitHub Desktop.
Save ricardodovalle/57d922e360b49df6aebf to your computer and use it in GitHub Desktop.
Meteor with "bigdsk:inputmask"
// 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
}
});
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