Function: labelDayButton()
labelDayButton(
date
,modifiers
,options?
,dateLib?
):string
Defined in: src/labels/labelDayButton.ts:19
Generates the ARIA label for a day button.
Use the modifiers
argument to provide additional context for the label,
such as indicating if the day is "today" or "selected."
Parameters
Parameter | Type | Description |
---|---|---|
date | Date | The date to format. |
modifiers | Modifiers | The modifiers providing context for the day. |
options? | DateLibOptions | Optional configuration for the date formatting library. |
dateLib? | DateLib | An optional instance of the date formatting library. |
Returns
string
The ARIA label for the day button.
Default Value
The formatted date.