menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FocusEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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 object that represents the model data when the focus event occurs. The default value is null.

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved