parttio / textfieldformatter

TextField Formatter Vaadin add-on
Apache License 2.0
13 stars 9 forks source link

Enable the ability to strip leading zeros on the NumeralFieldFormatter #23

Closed RobertoAffonso closed 4 years ago

RobertoAffonso commented 4 years ago

Hello! Im using the NumeralFieldFormatter to display the current value in Brazilian Reais, however im currently trying to format the value in order to display the leading zeros. For example if the user types in '10' it should format to 0,10 representing 10 cents. Cleave.js has a boolean value in the NumeralFieldFormatter called stripLeadingZeroes which by default it is set to true, it would be great to have this option on the TextFieldFormatter addon.

johannesh2 commented 4 years ago

Fixed in 4.1