5.0.0
ℹ️ Copying to clipboard now preserves formatting
This is a behavior change from earlier versions. If you still want the copy-to-clipboard to have the unformatted raw value, please open an issue and I can add the configuration option.
Numeral formatter supports having a postfix/suffix
Here the API from Cleave.js leaks more than usual. You add a prefix and define it as a 'tailprefix'.
/**
* Sets the prefix with possibility to add it to tail as postix/suffix with
* addAsPostfix true.
*
* @param value the prefix
* @param addAsPostfix true if the prefix should be shown as postfix/suffix
* (after the numeral).
*/
new NumeralFieldFormatter.Builder().prefix("€", true);