Vishal-Isharani / money-input

A money input component for angular 4+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A money input component for angular 4+


Languages

Language:TypeScript 76.8%Language:JavaScript 18.0%Language:HTML 3.0%Language:Shell 1.4%Language:CSS 0.7%