BcCalendarDatePicker
Description
The BcCalendarDatePicker component provides a customizable date picker with navigation and event marking features.
Parameters
DayNameMaxLength
int
Defines the maximum length of the displayed day names.
Value
DateOnly
The currently selected date.
ValueChanged
Action < DateOnly >
An event callback triggered when the date selection changes.
Events
List < DateOnly >
A list of dates that should be highlighted as events.
GridFieldSize
string
Defines the size of each date grid field.
GridGap
string
Defines the gap spacing between grid fields.
Methods
Navigates to the previous month.
Navigates to the next month.
Updates the selected date and triggers the ValueChanged event.
Retrieves the localized name of a day of the week, truncated to the specified maximum length.
Generates CSS class names based on the provided date’s attributes, such as whether it belongs to the current, previous, or next month, or whether it’s today’s date or an event date.
Computes and returns a list of dates that should be displayed in the calendar, including days from the previous and next months to fill the calendar grid.