Function FormattedNumberInput

  • Create a formatted number.

    See

    FormattedNumericInput for other types of numerics.

    Description

    When an HOC deals with an actual number, like currency or percent, this is the component to start with. Generally this is not used directly in an application but wrapped in a component at a higher level of abstraction. react-numerics includes HOCs for selected types of formatted numbers.

    To create formatted numbers of the following types:

    • integer: set decimalPlaces to 0.
    • positive number: set min to 0 or 1.
    • decimal: set decimalPlaces to the maximum allowed, will be right padded with zeroes.

    Parameters

    Returns null | ReactElement<any, string | JSXElementConstructor<any>>

Generated using TypeDoc