formcycle 8.4.0 - JavaScript for forms
    Preparing search index...

    Interface NumberFormatOptions

    Options for initializing an NumberFormat instance. The NumberFormat feature automatically formats the input field to display numbers in a specific format.

    Index

    Properties

    decimalPaddingMode: NumberFormatDecimalPaddingMode

    Whether to pad decimals with zeroes, up to the number of decimal places, see decimalPlaces.

    true
    
    decimalPlaces: number

    Maximum number of decimal places to display, see also decimalPaddingMode.

    2
    

    Separator to use to separate the integer part of the number from the fractional part. Defaults to ..

    "."
    

    How to group digits in the integer part of the number.

    "3"
    
    digitGroupSeparator: NumberFormatDigitGroupSeparator

    Separator to use between digit groups.

    ","
    

    Defines the behavior of the input field when it is empty.

    "show-unit-on-focus"
    

    Defines how to treat leading zeroes, e.g. 003512.

    "deny"
    
    negativeSign: string

    The sign used to indicate that a number is negative.

    Must be a single character. Must not be any of the numerical characters (digits).

    "-"
    
    positiveSign: string

    The sign used to indicate that a number is positive.

    Must be a single character. Must not be any of the numerical characters (digits).

    "+"
    

    The mode to use when rounding numbers.

    "half-up-symmetric"
    
    showPositiveSign: boolean

    Whether to show the positive sign for positive numbers.

    false
    
    signumSignPlacement: NumberFormatSignumSignPlacement

    Where to place the signum sign that indicates whether a number is positive or negative. See also negative sign and positive sign.

    "before-unit"
    
    unitSign: string

    The unit sign to show before or after the number, see unitSignPlacement.

    ""
    

    Where to place the unit sign, if any.

    "before-number"