primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Change InputMask component to a directive

Open sousajunior opened this issue 9 years ago • 10 comments

I'm submitting a ...

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Expected behavior Today, inputMask its a component and this limit your use, because you can not put mask on whatever you want. I think that will be a great change if the inputMask be a directive same as inputText, because you'll can use it on inputs, calendars, auto-complete, list-box, multi-select ...

Another thing to consider is that you cannot put a mask as dd/mm/yyyy in calendar, you are limited to use calendar chooser to set date, and for most users its necessary to put date without worry yourself insertion of '/' character manually.

It's only a idea, but if someone think equals, give a like to this feature request.

sousajunior avatar Aug 29 '17 13:08 sousajunior

All inputs needs a directive to define a mask.

Example the calendar with mask

augustoeliezer avatar Feb 26 '18 21:02 augustoeliezer

Such an important feature for an UI component library.

Could we please at least know if this is going to be done in the foreseeable future, or if there's no chance of that happening, @cagataycivici ? :)

tiagodws avatar May 14 '18 15:05 tiagodws

Any update on this issue? @cagataycivici

xandecf avatar Oct 19 '18 14:10 xandecf

any updates on this?

mikaelboff avatar Jul 02 '19 12:07 mikaelboff

@cagataycivici

mikaelboff avatar Jul 02 '19 12:07 mikaelboff

All inputs needs a directive to define a mask.

Example the calendar with mask

this sounds perfect, primefaces has implemented.

jackstuard avatar Jul 02 '19 14:07 jackstuard

All inputs needs a directive to define a mask.

Example the calendar with mask

Primefaces calendar demo url was changed to: https://www.primefaces.org/showcase/ui/input/calendar/calendar.xhtml That example named "Mask" is indeed what we're looking for to be implemented at PrimeNg as well.

Hopefully it'll get implemented soon. For now we only have hacky solutions.

Or maybe I can try 'racoon-mask-primeng' from @shogogan.

ThomasDecavele avatar May 04 '20 16:05 ThomasDecavele

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

mertsincan avatar Nov 09 '22 14:11 mertsincan

Well inputMask is still a component and not a directive. So this is not solved :(

DaSchTour avatar Oct 21 '24 10:10 DaSchTour

What is the status of this feature?

tristanjayvirtudazo avatar Apr 05 '25 11:04 tristanjayvirtudazo