Input mask for IP addresses

UI Components for Angular
Post Reply
DrikusBritz
Posts: 1
Joined: 19 Jun 2017, 16:18

26 Jun 2017, 14:36

Hi,
Has anybody done some work with input mask, input text or directives to handle IP Addresses nicely, that they are willing to share?

flawesome
Posts: 6
Joined: 22 Apr 2022, 10:05

11 May 2022, 11:58

Unfortunately the inputMask does not really work well for an IP address.

Instead you could use a regular input field with a keyFilter and RegEx to accomplish this.

Here an example of how this could look like:
https://stackblitz.com/edit/github-a94a ... onent.html

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests