Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cutTrailingZeros prop added to the component #614

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Commits on Nov 8, 2021

  1. Configuration menu
    Copy the full SHA
    1a70575 View commit details
    Browse the repository at this point in the history
  2. Update version

    nikhil-varma committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    6b20218 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. cutTrailingZeros prop added to the component

    cutTrailingZeros (number) => if passed, then it will look for, and cut, ALL trailing zeros , stopping at cutTrailingZeros decimal point. So cutTrailingZeros  is also used to determine the number of decimal places to leave intact when cutting trailing zeros . It's up to user, currently, to bear in mind the decimalScale value (if used) to not exceed its value. Currently, in case both decimalScale and cutTrailingZero props are used, if cutTrailingZero > decimalScale  and fixedDecimal is used, it will display cutTrailingZero  amount of decimals instead of decimalScale   amount of decimals.
    
    examples where this is usefull:
     if 123,456.780 and cutTrailingZeros = 2 then the result will be => 123,456.78
    but if 123,456.780 and  cutTrailingZeros = 3 then the result will be => 123,456.780 .
    GTadeon committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    15ce29a View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. cut trailing zeros - on blur support added

    cut trailing zeros - on blur support added - now trailign zeros can be cut on Blur as well (previously it was only on change which is not always desired, now both events are possible!- use the one you need)
    GTadeon committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    ea076a7 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2022

  1. added flag for rounding

    flag allows you to chose between rounding (when using decimal scale) and no rounding. Default value is true (with rounding based on decimal and fixed scale passed). If false, it won't round. The rest of the logic still applies (cutting trailing zeros, other formattings..)
    GTadeon committed Mar 8, 2022
    Configuration menu
    Copy the full SHA
    664b577 View commit details
    Browse the repository at this point in the history
  2. .

    .
    GTadeon committed Mar 8, 2022
    Configuration menu
    Copy the full SHA
    51d9a7f View commit details
    Browse the repository at this point in the history