JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.15k stars 298 forks source link

How can I use for a mask like this: 00h00 ? #1252

Closed darlondjc closed 10 months ago

andriikamaldinov1 commented 11 months ago

@darlondjc Hi. could you add more details ?? what is h ??

darlondjc commented 11 months ago

It’s just a mask with 00h00, where 0 is any number 0-9 and h is the literal letter. When I put the first two numbers, the mask should complete with the h and then I put the other two numbers.

Em ter., 10 de out. de 2023 às 04:02, Andrii Kamaldinov < @.***> escreveu:

@darlondjc https://github.com/darlondjc Hi. could you add more details ?? what is h ??

— Reply to this email directly, view it on GitHub https://github.com/JsDaddy/ngx-mask/issues/1252#issuecomment-1754542537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4PLM4V624NSREPBT2NTD3X6TXJRAVCNFSM6AAAAAA5Y6EZHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGU2DENJTG4 . You are receiving this because you were mentioned.Message ID: @.***>

darlondjc commented 11 months ago

It’s the same mask for hour and minutes (00:00), but with the h in the middle.

Em ter., 10 de out. de 2023 às 08:14, Darlon @.***> escreveu:

It’s just a mask with 00h00, where 0 is any number 0-9 and h is the literal letter. When I put the first two numbers, the mask should complete with the h and then I put the other two numbers.

Em ter., 10 de out. de 2023 às 04:02, Andrii Kamaldinov < @.***> escreveu:

@darlondjc https://github.com/darlondjc Hi. could you add more details ?? what is h ??

— Reply to this email directly, view it on GitHub https://github.com/JsDaddy/ngx-mask/issues/1252#issuecomment-1754542537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4PLM4V624NSREPBT2NTD3X6TXJRAVCNFSM6AAAAAA5Y6EZHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGU2DENJTG4 . You are receiving this because you were mentioned.Message ID: @.***>

darlondjc commented 11 months ago

Any solution?

andriikamaldinov1 commented 10 months ago

@darlondjc Hi. Thanks for using Ngx-Mask. Here is an example of how you can use it - https://stackblitz.com/edit/angular-8ubdab?file=src%2Fmain.ts

darlondjc commented 10 months ago

Thanks for the help. It worked perfectly.

Em seg., 6 de nov. de 2023 às 09:25, Andrii Kamaldinov < @.***> escreveu:

Closed #1252 https://github.com/JsDaddy/ngx-mask/issues/1252 as completed.

— Reply to this email directly, view it on GitHub https://github.com/JsDaddy/ngx-mask/issues/1252#event-10872142672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4PLM275T2NFNE7ZRYC6GLYDDJMVAVCNFSM6AAAAAA5Y6EZHGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQHA3TEMJUGI3DOMQ . You are receiving this because you were mentioned.Message ID: @.***>