Calendar Blazor API

Calendar Properties

NameTypeDefaultDescription
AnimationSettingsobjectN/AEnhances the animation behavior by applying new settings when enabled.


Properties:



  • startSpeed – Specifies the initial speed at which the animation begins, allowing you to control how quickly the animation starts.


  • easeThreshold – Defines the point during the animation where the "ease effect" starts, meaning the animation begins to slow down for a smoother transition.


  • step – Sets the interval for each frame or update of the animation, effectively controlling how smoothly or incrementally the animation moves.


  • stepEaseSize – A coefficient used to calculate the updated step size once the animation passes the easeThreshold, increasing the ease-in/ease-out effect as the animation decelerates.


  • resetThreshold – Determines the point at which the animation will automatically reset and start from the beginning, allowing for looping or repeated motion.

CalendarModeCalendarModeCalendarMode.DefaultSpecifies the configuration and behavior of the date selection controls displayed within the header section of the Calendar component, such as navigation buttons, month and year dropdowns, or other tools that allow users to change the visible date range.
DayNameFormatDayFormatDayFormat.FirstTwoLettersSpecifies the display format for the names of the days of the week that appear as headers above the calendar grid. This setting controls whether the day names are shown in full (e.g., "Monday"), as abbreviations (e.g., "Mon"), or as single letters (e.g., "M").
DateFormatFunctionobjectN/AA callback function that allows you to customize the display format of month names when the calendarMode property is set to 'default'. Use this callback to define how month names should appear (e.g., full name, abbreviation, localization) in the calendar interface.
DisabledboolfalseControls whether the Calendar feature is active or inactive. When enabled, the Calendar is accessible to users; when disabled, the Calendar is inactive.
DisableAutoNavigationboolfalsePrevents the calendar from automatically navigating to a different month when the user clicks on a date cell that belongs to a month other than the one currently displayed. This ensures that selecting dates outside the visible month will not change the current view.
DisableMouseWheelboolfalseConfigures whether the mouse wheel can be used to navigate or change dates in the Calendar component. When enabled, scrolling the mouse wheel will move between calendar views or dates; when disabled, the mouse wheel will have no effect on the calendar.
DisplayModeCalendarDisplayModeCalendarDisplayMode.MonthSpecifies which date is initially displayed in the calendar when calendarMode is set to 'default'. This property controls the starting visible month or day in the calendar interface, allowing you to set the user's initial view to a specific date.
DisplayModeViewCalendarDisplayModeViewCalendarDisplayModeView.TableSpecifies the layout style displayed for the month or year view when calendarMode is set to "Default." This setting controls how dates are visually organized and presented to the user, such as showing days within a month grid or listing months within a year, depending on the selected calendar mode.
DropDownHeightobject200Specifies the vertical height, in pixels, of the month selection dropdown within the Calendar component. This setting controls how much space the dropdown occupies when users select a month. Adjusting this value can improve usability and visual consistency with other UI elements.
DropDownWidthobjectSpecifies the width of the month selection dropdown within the Calendar component. This property controls how wide the dropdown appears, allowing you to adjust its size for better alignment or readability within the Calendar interface.
FirstDayOfWeekint0Specifies which day is considered the start of the week, using a numeric value where 0 represents Sunday, 1 represents Monday, up to 6 for Saturday. For example, setting the value to 1 makes Monday the first day of the week.
FooterTemplateobjectN/ADefines a custom footer template for the component. You can provide either the ID of an existing '