inputMask min and max value validation

UI Components for Angular
Post Reply
ujtordai
Posts: 54
Joined: 31 May 2017, 14:18

22 Jan 2018, 12:25

Hi All,

Is there any documented way for validating by min and max values, or limiting the input value by min and max value range?

For example, if I set the min Value to 1 and if the user set zero value, the component notify the user with standard validation way or optionally change the value to minimum value.

At first I thought to that, I define a regular expression pattern for limiting value range, as I usually did.
But you not set as @Input() the pattern for the InputMask component to use original functionality, inspite of the fact that it is standard embedded validation by Angular, so you hide it.
You could have implement it, same as you define @Input() for required, or maxlength.

What do you think about it?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests