Questions tagged [ngx-mask]

53 questions
0
votes
2 answers

ngx-mask - Simple Decimal Mask Not working

I would like a textbox that allows only 2 decimals. I am using https://github.com/JsDaddy/ngx-mask/ to achieve this. This example ( using Angular 8 and an older mask version ) works , but looks like the newer version doesnt! This is my…
Sajjan Sarkar
  • 3,900
  • 5
  • 40
  • 51
0
votes
1 answer

Angular 9 dynamic ngx-mask issue

I have the following input and I would like to initialize it with a certain value. Let's say 12-12345-1234. This doesn't work since I only see 12-1234-5123 (The…
Damian Kociszewski
  • 283
  • 1
  • 5
  • 20
0
votes
0 answers

NGX MASK optionals alphanumerics take wrong spot

After several tries, I haven't found solutions, i would like make a mask. Here is my problem: My mask is composed: 3 numbers required 1 space required 1 alphanumeric required 1 letter not required 1 space required 2 numbers required What I expect…
Napo
  • 1
  • 1
  • 1
0
votes
1 answer

What does Angular FormControl value actually hold and why is it different from the nativeElement value?

Update: logging blur and keyup events shows that the mask never makes it into the FormControl value. Why is that? Even calling the setValue() method on the control itself strips out the mask. Like: MSRP…
Willie
  • 281
  • 3
  • 21
0
votes
1 answer

How to clear all the values using ctrl+Z after numer being typed in angula8 using ngx-mask

mask for phone number field but here if i type some numbers and do ctrl+Z, it is not clearing all the values, when i do ctrlZ after typing, it must clear all the values present in it. DEMO: DEMO TS: this.eoInfoForm = this.FB.group({ amount:…
Bhrungarajni
  • 2,415
  • 11
  • 44
  • 88
0
votes
1 answer

Unable to clear value of element in template driven form when mask format is changed

I have a text box, where I need to change the mask format based on user input and clear the text box. If I change the mask format, the text box is not getting cleared, and if I remove the condition of mask format, the text box is getting…
Ambareesh
  • 81
  • 1
  • 8
0
votes
1 answer

How to define fix numbers and/or chars with ngx-mask

Using ngx-mask, this would force me to enter 1234.56 - but let's say I only want to accept 99 as the last two digits, how would I need to define the mask? Can't make it work with custom…
sl3dg3
  • 5,026
  • 12
  • 50
  • 74
-1
votes
1 answer

error TS2322: Type 'null' is not assignable to type 'Partial | (() => Partial)'

Installed and followed Quickstart instructions of ngx-mask for app.module.ts: import { NgxMaskModule, IConfig } from 'ngx-mask' export const options: Partial | (() => Partial) = null; @NgModule({ imports: [ …
Jeb50
  • 6,272
  • 6
  • 49
  • 87
1 2 3
4