This addon is no longer maintained. Please use https://github.com/pzuraq/ember-inputmask instead.
An ember-cli addon for creating input masks on text fields. It makes use of the jquery.inputmask plugin to assist users in entering text that matches the required format.
To install this addon in your ember application:
ember install:addon ember-cli-input-mask
In your handlebars template:
This addon's input-mask
component extends an Ember.TextField
. See the Ember input helpers guides for information on the available attributes.
A very common case will be to set a value:
Your value
can be a JS date if you use jquery.inputmask
's built-in date type, and it will be handled correctly:
See jquery.inputmask's masking types docs for more information on defining masks.
ember test
This addon was born from a blog post by Peter Brown of Agilion.