Files
radzen-blazor/Radzen.Blazor/SchedulerSlotRenderEventArgs.cs

37 lines
1.2 KiB
C#
Raw Permalink Normal View History

2021-11-01 10:57:11 +02:00
using System;
using System.Collections.Generic;
using Radzen.Blazor;
namespace Radzen
{
/// <summary>
/// Supplies information about a <see cref="RadzenScheduler{TItem}.SlotRender" /> event that is being raised.
/// </summary>
public class SchedulerSlotRenderEventArgs
{
/// <summary>
/// The start of the slot.
/// </summary>
public DateTime Start { get; set; }
/// <summary>
/// The end of the slot.
/// </summary>
public DateTime End { get; set; }
// used to pass a function to get appointments on demand.
internal Func<IEnumerable<AppointmentData>>? getAppointments;
private IEnumerable<AppointmentData>? appointments;
/// <summary>
/// List of appointments.
/// </summary>
public IEnumerable<AppointmentData> Appointments => appointments ??= getAppointments!();
2021-11-01 10:57:11 +02:00
/// <summary>
/// HTML attributes to apply to the slot element.
/// </summary>
public IDictionary<string, object> Attributes { get; set; } = new Dictionary<string, object>();
/// <summary>
/// The current view.
/// </summary>
public ISchedulerView? View { get; set;}
2021-11-01 10:57:11 +02:00
}
}