Finance Input
Makes it easier to see large numbers
Features
- Max value
- Format the amount with a thousands separator (',') as you type
- Support the following keyboard shortcuts (case insensitive):
- Entering 'k' will multiply the amount by one thousand
- Entering 'm' will multiply the amount by one million
- Entering 'b' will multiply the amount by one billion
- Prevent the user from entering an invalid amount where possible
- Be user friendly and behave intuitively when entering or editing an amount
- Support cut, paste, undo
Roadmap
- Trim trailing zeroes after the decimal point
#Tests
The tests are done using the component as part of a real cli app. You can run the tests by
cd tests
npm i
ng test