Class ClearedEventArgs
Provides event arguments for the clear event when a calendar component's value is cleared.
Inheritance
System.Object
ClearedEventArgs
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public class ClearedEventArgs : Object
Remarks
This class contains event information when a user clears the calendar value using the clear button or through programmatic clearing. It provides access to the original browser event that triggered the clear action.
Examples
<SfCalendar TValue="DateTime?" ShowClearButton="true">
<CalendarEvents TValue="DateTime?" Cleared="OnCleared"></CalendarEvents>
</SfCalendar>
@code {
void OnCleared(ClearedEventArgs args)
{
Console.WriteLine("Calendar value was cleared");
}
}
Constructors
ClearedEventArgs()
Declaration
public ClearedEventArgs()
Properties
Event
Gets or sets the original browser event that triggered the clear action.
Declaration
public object Event { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An |
Remarks
This property contains the raw browser event information, such as a click event on the clear button, that caused the calendar value to be cleared. It provides access to the underlying event details.