formatter.js icon indicating copy to clipboard operation
formatter.js copied to clipboard

Placeholder

Open antwaanh opened this issue 11 years ago • 5 comments

It would be nice to have a third option for placeholder text.

Ex: new Formatter(birthDateInput, { 'pattern': '{{99/99/9999}}', 'persistent': true 'placeholder': 'MM/DD/YYYY' });

antwaanh avatar Nov 30 '13 03:11 antwaanh

Curious on how you would would like to see this implemented. Would the functionality be different than the html placeholder attribute?

jaridmargolin avatar Dec 01 '13 06:12 jaridmargolin

Would love to see this functionality implemented! It should work just as the normal placeholder attribute does currently, i.e. as soon as user input is detected, the placeholder gets replaced with the pattern.

tjramage avatar Dec 02 '13 11:12 tjramage

@tjramage I'm still not sure I understand... why not just use the html placeholder attribute?

jaridmargolin avatar Dec 04 '13 05:12 jaridmargolin

Doesn't this plugin override the placeholder attribute when persistent is set to true?

AdamGerthel avatar Jan 15 '14 13:01 AdamGerthel

@AdamGerthel Not only on persistent: true. I cannot see a placeholder.

iduuck avatar May 18 '15 08:05 iduuck