RayCraftDocs
v1.0.3 raycraft.dev
On this page

EventCalendar

Free

Month view with events. Events spanning several days appear on each day; a day shows up to MaxEventsPerDay and a +n more link. On narrow screens the events become colored dots and the day number opens the day.

Example

EventCalendar control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
EventsIEnumerable<CalendarEvent>CalendarEvent(title, start, end, severity) items.
FirstDayOfWeekDayOfWeek?Overrides the first weekday of the current language.
MaxEventsPerDayintEvents shown in a day before the +n more link (default 3).
MonthDateTimeShown month. Use with @bind-Month.
StylestringInline style added to the root element.

Events

EventTypeDescription
MonthChangedEventCallback<DateTime>Raised when the month changes.
OnDayClickEventCallback<DateTime>Raised with the clicked day.
OnEventClickEventCallback<CalendarEvent>Raised with the clicked event.

Package

EventCalendar is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.