-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how use two masks on v0.4.x? #36
Comments
@joseholanda I don't fully understand the question. In order to have two masks, you simply create two {{input-mask mask='(99) 9999-9999' showMaskOnHover=true showMaskOnFocus=true
clearMaskOnLostFocus=true}}
{{input-mask mask='(99) 99999-9999' showMaskOnHover=true showMaskOnFocus=true
clearMaskOnLostFocus=true}} The above template should just work. If it doesn't, then It's a bug and we should fix it. The usage you showed looks like the old 'jQuery' way, not the 'Ember' way. |
@leizhao4 , i would like to add two masks in the same field. Example in v.0.4.x: Example in v.0.2.x: |
Ah, I see what you are saying. Unfortunately I don't personally have experience with this use case. I was assuming that passing an array as export default Ember.Component.extend({
mask: ['(99) 9999-9999', '(99) 99999-9999']
}); {{input-mask mask=mask}} But this didn't in my test. So I'm guessing somewhere in the library code only accepts |
@joseholanda do alternator masks work for your use case? |
How to make it possible to insert two masks on v.0.4.x version ?
In v.0.2.x version I did like this:
The text was updated successfully, but these errors were encountered: