ui-mask icon indicating copy to clipboard operation
ui-mask copied to clipboard

Add option to reverse fill

Open Alanzhoffmann opened this issue 7 years ago • 0 comments

An issue I've found is when the first characters are optional, I have to fill them anyway for my mask to actually work.

<input ng-model="time" ui-mask="9?9?9:99" />

Filling it from right to left would make it possible to type 545 and it show up 5:45 instead of 545:__ as it is. Additionally it would be perfect if I could type infinitely for it to mask only the end, something like

<input ng-model="time" ui-mask="9#9:99" />

so typing 113534 would show 1135:34

Alanzhoffmann avatar Jan 24 '18 17:01 Alanzhoffmann