primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
9.82k stars 1.18k forks source link

InputMask #6198

Closed Mo-shi closed 1 month ago

Mo-shi commented 1 month ago

Describe the bug

How to set the number of numbers or letters entered in the middle to any amount instead of simply adding **** or 999999

Reproducer

nothing

PrimeVue version

4.x

Vue version

4.x

Language

ALL

Build / Runtime

Vite

Browser(s)

chrome

Steps to reproduce the behavior

nonthing

Expected behavior

nothing

ogzcode commented 1 month ago

@Mo-shi Can you ask your question again with more clarity and a code example? I couldn't understand anything like this.

Mo-shi commented 1 month ago

@ogzcode Sorry for that I don't know English, I translated it. I mean is there any symbol that can solve the placeholder problem; I want to add a placeholder that allows me to enter any number of letters or numbers. Instead of relying on * or 9 to limit the number of inputs. I want to use inputmask to implement email verification. I hope you can understand the machine translation. thank you~~~

kaelonR commented 1 month ago

@Mo-shi

InputMask has nothing built-in for this, but it might be possible to do something like this programmatically, depending on what functionality you need exactly.

Can you try and explain how allowing people to enter any amount of letters or numbers helps you to validate their e-mail address? Wouldn't a regular InputText work better for this?

Mo-shi commented 1 month ago

@kaelonR yep, i try other thing. thank you.