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

    Type Alias NumberFormatEmptyMode

    NumberFormatEmptyMode:
        | "keep-empty"
        | "show-unit"
        | "show-zero-and-unit"
        | "show-unit-on-focus"

    Defines the behavior of the input field when it is empty, i.e. no number is present.

    • keep-empty - Keep the input field empty.
    • show-unit - Show the unit sign (if any).
    • show-zero-and-unit - Show the number 0 and the unit sign (if any).
    • show-unit-on-focus - Keep the input empty, but show the unit sign when the input field is focused.