Settings that affect how the features strings are formatted.

interface FormatOptions {
    currency?: string;
    dateFormat?: string;
    defaultExpressionValue?: string;
    format: string;
    fractionalDigits?: number;
    isDateOnly?: boolean;
    locale?: string;
    numberFormat?: string;
    timeFormat?: string;
    timeZone?: string;
}

Hierarchy (view full)

Properties

currency?: string

The default unit of currency to use when formatting currency. See utilities/format/number!NumberSettings.currency.

dateFormat?: string

The default format to use when formatting dates. See utilities/format/date!DateFormatter.format.

defaultExpressionValue?: string

The default string value for unevaluated expression values. Defaults to an empty string.

format: string
fractionalDigits?: number

The default number of digits to show after the decimal point when formatting numbers. See utilities/format/number!NumberSettings.fractionalDigits.

isDateOnly?: boolean

Indicates if a formatted date should be formatted without the time component even if the format suggests to include a time.

locale?: string

The locale to use when formatting numbers and dates. If not specified, the current locale is used (see locale module).

numberFormat?: string

The default format to use when formatting numbers. See utilities/format/number!NumberFormatter.format.

timeFormat?: string

The default format to use when formatting times. See utilities/format/time!TimeFormatter.format.

timeZone?: string

The time zone of a date being formatted. See utilities/format/date!DateFormatter.timeZone.