@using Radzen.Blazor
@using Radzen.Blazor.Rendering

@inherits SchedulerViewBase

@code {
    public override RenderFragment Render()
    {
        var appointments = Scheduler?.GetAppointmentsInRange(StartDate, EndDate).ToList() ?? new List<AppointmentData>();

        return
    @<CascadingValue Value=@Scheduler>
        <DayView StartDate=@StartDate EndDate=@EndDate StartTime=@StartTime EndTime=@EndTime Appointments=@appointments
            TimeFormat=@TimeFormat MinutesPerSlot=@MinutesPerSlot
            AppointmentMove=OnAppointmentMove />
    </CascadingValue>
    ;
    }
}
