Skip to main content

Type Alias: Formatters

Formatters: {formatCaption: typeof formatCaption;formatDay: typeof formatDay;formatMonthCaption: typeof formatMonthCaption;formatMonthDropdown: typeof formatMonthDropdown;formatWeekdayName: typeof formatWeekdayName;formatWeekNumber: typeof formatWeekNumber;formatWeekNumberHeader: typeof formatWeekNumberHeader;formatYearCaption: typeof formatYearCaption;formatYearDropdown: typeof formatYearDropdown; }

Represent a map of formatters used to render localized content.

Type declaration​

NameTypeDescription
formatCaptiontypeof formatCaptionFormat the caption of a month grid.
formatDaytypeof formatDayFormat the day in the day cell.
formatMonthCaptiontypeof formatMonthCaptionDeprecated Use Formatters.formatCaption instead.
formatMonthDropdowntypeof formatMonthDropdownFormat the label in the month dropdown.
formatWeekdayNametypeof formatWeekdayNameFormat the week day name in the header.
formatWeekNumbertypeof formatWeekNumberFormat the week number.
formatWeekNumberHeadertypeof formatWeekNumberHeaderFormat the header of the week number column.
formatYearCaptiontypeof formatYearCaptionDeprecated Use Formatters.formatYearDropdown instead.
formatYearDropdowntypeof formatYearDropdownFormat the label in the year dropdown.

Defined in​

src/types/shared.ts:111