Class FocusEventArgs
Provides event arguments for the focus event when a calendar component gains focus.
Inheritance
System.Object
FocusEventArgs
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public class FocusEventArgs : Object
Remarks
This class encapsulates the data associated with the focus event, which is triggered when a calendar component receives input focus. The event arguments include model information that provides context about the component's state.
Examples
<SfCalendar TValue="DateTime?">
<CalendarEvents TValue="DateTime?" OnFocus="HandleFocus"></CalendarEvents>
</SfCalendar>
@code {
void HandleFocus(FocusEventArgs args)
{
Console.WriteLine($"Calendar gained focus. Model: {args.Model}");
}
}
Constructors
FocusEventArgs()
Declaration
public FocusEventArgs()
Properties
Model
Gets or sets the model associated with the focus event.
Declaration
public object Model { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An |
Remarks
This property contains model information that provides context about the component's state when the focus event is triggered. The model can be used to access component-specific data or configuration at the time focus is received.