insin / inputmask-core

Standalone input mask implementation, independent of any GUI
MIT License
304 stars 52 forks source link

Add revealing mask feature #21

Closed NickGard closed 8 years ago

NickGard commented 8 years ago

Revealing mask only shows static and placeholder characters contained within the current value

Example: Given an input with a mask of '111-1111 x 111', a value of '47', and isRevealingMask set to true, then the input's value is formatted as '47'

Given the same input but with a value of '476', then the input's value is formatted as '476-'

Given the same input but with a value of '47 3191', then the input's value is formatted as '47_-3191 x '