mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
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!();
|
|
/// <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;}
|
|
|
|
}
|
|
} |