Interface Formatter

Hierarchy

  • Formatter
  • Accepts a numeric input string and returns a string formatted for display.

    See

    FormatterFactory

    Parameters

    • input: string

      The value to format. If the input represents a float it must be formatted in the en-US locale, i.e. uses a "." to separate the whole from the fractional part.

    Returns string

  • Accepts a numeric input string and other options to return a string formatted for display.

    See

    FormatterFactory

    Parameters

    • input: string

      The value to format. If the input represents a float it must be formatted in the en-US locale, i.e. uses a "." to separate the whole from the fractional part.

    • previousFormatted: string

      The previous formatted value.

    • context: FormatterContext

      The current context of the format request.

    Returns string

Generated using TypeDoc