RonaldJerez / vue-input-facade

A lightweight and dependency free input masking library created specific for Vue
https://ronaldjerez.github.io/vue-input-facade/latest/
182 stars 27 forks source link

Pre-project question RE IP address masking #4

Closed RickKukiela closed 4 years ago

RickKukiela commented 4 years ago

I have an upcoming project where I'm going to need to mask vuetify text field inputs for IP addresses. I need to allow {0-255}.{0-255}.{0-255}.{0-255} so not only do I want to limit the number amount for each value to 255 (ie 256 not valid) and also I want them to be able to enter 8.8.8.8 (one number per octet) without having to do 008.008.008.008 by using a generic mask like ###.###.###.### would required - Is this going to be possible with this library?

RonaldJerez commented 4 years ago

I don’t think you can accomplish that with the current implementation. I have a pipe feature in the beta branch that allows you to manually format the output. You can give that a try, I posted some sample code on issue #1