Questions tagged [ngx-mask]
53 questions
0
votes
2 answers
Angular 11 Module '"ngx-mask"' has no exported member 'NgxMaskModule'
I am running Angular 11. I have not taken any action relating to updating Angular versions; I only installed one new package which is not working.
I ran npm i --save ngx-mask and it successfully installed version 15.0.2 (latest as of now), which I…

A. Patterson
- 41
- 2
- 6
0
votes
0 answers
ngx-mask: NullInjectorError when I try to mask on CustomElement
I'm trying to create a mask in a Custom Element in Angular for an application in Blazor, when I run the application on the Angular server everything works, but on the Blazor server I get a NullInjectorError message.
ERROR NullInjectorError:…

abeppler
- 13
- 4
0
votes
1 answer
ngx-mask don't work properly after updateValueAndValidity on the input control, angular 11
I have an input using the ngx-mask
In the ts file I use: this.contactPopupForm.get('contactPhone')?.updateValueAndValidity(); because I change the Validator for that…

josecastillo86
- 330
- 1
- 8
0
votes
0 answers
ngx-mask: How to format number as starting from decimal right to left
I'm using mask="separator.2" thousandSeparator="," to format number input and working ok. Now, would like to see
always have 2 decimal position.
numbers-input appears from decimal, right to left. For example, as I'm entering 123, display…

Jeb50
- 6,272
- 6
- 49
- 87
0
votes
1 answer
Have "APP" as prefix and then allow only numbers in input field
I have a requirement where I have an input field, that must have the prefix "APP " and then allow the user to type in 7 numeric only values. I was hoping I could use ngx-mask, but it doesn't seem possible. Alternatively I was thinking of using…

jpuvo
- 25
- 1
- 1
- 5
0
votes
1 answer
Angular ngx mask issue when mask has multiple optional numbers (9)
I'm trying to implement a mask for iban input.
The mask is "SS00 AAAA 0000 0000 0000 9999 9999 9999 99".
For some reason the mask bugs out when the optional numbers come in.
It'll display a space instead of a 9 basically making it
SS00 AAAA 0000…

HSwinnie
- 1
- 3
0
votes
0 answers
Show Today in a mat-datepicker while keeping the date value
I am using Angular 12 and Angular Material Datepicker, and I want to be able to show strings like "Today" or "Current" when the selected date meets a condition. However I do not want my form to contain string values, i only want to mask the date…

Carlos Isidoro López
- 383
- 1
- 2
- 17
0
votes
1 answer
I am trying to change the default promptCharacter in ngxMask in angular
I am using ngxmask in Angular to display the phone number in the following pattern:
(000) 000-0000
I set showMaskTyped Property to true to always display the mask pattern in the input which looks as the following:
(___) ___-____
I want to replace…

Alwin Joseph
- 1
- 1
0
votes
0 answers
Angular 13 / ngx-mask thousand seperator mask
Hello i am using the following ngx mask template:

GreekSwiss
- 37
- 8
0
votes
0 answers
Angular - ngx-mask - convert mask to number
I am using ngx-mask like this:

Glauco Todesco
- 15
- 1
- 6
0
votes
1 answer
Is there any way to allow input dot and comma as decimal marker?
specific question!
Is there a way to allow user to input comma and dot as a decimal marker, but keep the dot in displayed value and then trim thousand separators?
User inputs "123456,78", sees "123 456.78", value is "123456,78"
User inputs…

lucifer63
- 784
- 9
- 32
0
votes
1 answer
Why can't I dynamically update the mask of an input using ng-neat input-mask?
I'm currently playing around with a stackblitz here: https://stackblitz.com/edit/angular-ivy-qr7yav?file=src%2Fapp%2Fanother.component.html
With both ng-neat's input-mask found here https://github.com/ngneat/input-mask as well as ngx-mask, I've…

Kyle Westendorf
- 11
- 3
0
votes
0 answers
How to mask input "(500)-000-0000" with ngx-mask?
I am using ngx-mask in my project. Normally I defined my phone number's mask like this: "(000)-000-0000)". But I am wondering how can I do it like this: "(500)-000-0000)"? When I try it, it breaks my code.

YSFKBDY
- 735
- 1
- 12
- 38
0
votes
1 answer
How do you mask a decimal with optional integer ngx-mask
I'm working with ngx-mask v11.1.5 and am having difficulty creating a mask that allows both leading integers and omitted integers. For instance, both ".5" and "0.5" should be acceptable inputs and set the model to "0.5".
I've tried using the mask…

vball
- 359
- 1
- 14
0
votes
0 answers
How can i work with custom regex on ngx-mask in Angular? Using Lat/Lon coords
i need some help to work with regex on ngx Mask.
I'm trying to set a mask to my Lat,Lon google coords input with a custom regex.
-5.57455948, -70.5165755
This Regex fit the entire…