Skip to main content

@dialstack/sdk-dev / js/src / FormattingOptions

Interface: FormattingOptions

Defined in: sdk/js/src/types/components.ts:426

Formatting options for components

Properties​

dateLocale?​

TypeScript
optional dateLocale?: string;

Defined in: sdk/js/src/types/components.ts:437

Locale for date/time formatting (BCP 47 language tag)

Default​

TypeScript
'en-US'

defaultCountry?​

TypeScript
optional defaultCountry?: string;

Defined in: sdk/js/src/types/components.ts:431

Default country code for phone number formatting (ISO 3166-1 alpha-2)

Default​

TypeScript
'US'

showTimezone?​

TypeScript
optional showTimezone?: boolean;

Defined in: sdk/js/src/types/components.ts:449

Show timezone in date/time display

Default​

TypeScript
true

use24HourTime?​

TypeScript
optional use24HourTime?: boolean;

Defined in: sdk/js/src/types/components.ts:443

Use 24-hour time format

Default​

TypeScript
false