Skip to content

5.0.0

Compare
Choose a tag to compare
@johannesh2 johannesh2 released this 29 May 08:10
· 28 commits to master since this release

ℹ️ 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);