Class TwCalendarAllDayRow<T>
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
The strip above the Day and Week time grids that holds all-day events and events lasting a day or longer (see IsBanner<T>(Schedule<T>)), the way Microsoft Teams does. Each event is one bar that spans every day it covers, so a three-day event is a single bar across three columns. Renders nothing when no event needs it.
public class TwCalendarAllDayRow<T> : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Type Parameters
TThe type of Value for the events shown.
- Inheritance
-
TwCalendarAllDayRow<T>
- Implements
- Inherited Members
Constructors
TwCalendarAllDayRow()
public TwCalendarAllDayRow()
Properties
Days
The days the strip's columns stand for: one for the Day view, seven for the Week view.
[Parameter]
[EditorRequired]
public IReadOnlyList<DateTime> Days { get; set; }
Property Value
DraggedEvent
The event being dragged once the drag is live; see DraggedEvent. Only all-day and multi-day events can be dropped here.
[Parameter]
public Schedule<T>? DraggedEvent { get; set; }
Property Value
- Schedule<T>
DropPreview
The day DraggedEvent would land on if released now.
[Parameter]
public DateTime? DropPreview { get; set; }
Property Value
Editable
When true, non-read-only events can be dragged to another day.
[Parameter]
public bool Editable { get; set; }
Property Value
OnEventClick
Invoked with the event when its bar is activated.
[Parameter]
public EventCallback<Schedule<T>> OnEventClick { get; set; }
Property Value
OnEventDragEnd
Invoked when a drag ends, whether or not it was dropped on a valid target.
[Parameter]
public EventCallback OnEventDragEnd { get; set; }
Property Value
OnEventDragOver
Invoked with the day a dragged event is hovering.
[Parameter]
public EventCallback<DateTime> OnEventDragOver { get; set; }
Property Value
OnEventDragStart
Invoked with an event when dragging it starts.
[Parameter]
public EventCallback<Schedule<T>> OnEventDragStart { get; set; }
Property Value
OnEventDrop
Invoked with a day when a dragged event is dropped on it.
[Parameter]
public EventCallback<DateTime> OnEventDrop { get; set; }
Property Value
Schedules
The full event list; only events that need the strip are drawn.
[Parameter]
public List<Schedule<T>> Schedules { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder