menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NumericBlurEventArgs<T> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NumericBlurEventArgs<T>

    Represents the event arguments for the blur event in the NumericTextBox component.

    Inheritance
    System.Object
    NumericBlurEventArgs<T>
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class NumericBlurEventArgs<T> : Object
    Type Parameters
    Name Description
    T

    The type of the value in the NumericTextBox.

    Remarks

    This class is used when the NumericTextBox loses focus, providing information about the current state of the component including its value and container element reference.

    Examples
    <SfNumericTextBox @bind-Value="@numericValue" Blur="OnBlur">
    </SfNumericTextBox>
    
    @code {
        private double numericValue = 10;
    
        private void OnBlur(NumericBlurEventArgs<double> args)
        {
            Console.WriteLine($"NumericTextBox lost focus with value: {args.Value}");
        }
    }

    Constructors

    NumericBlurEventArgs()

    Declaration
    public NumericBlurEventArgs()

    Properties

    Container

    Gets or sets the reference to the NumericTextBox container element.

    Declaration
    public ElementReference Container { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.ElementReference

    An Microsoft.AspNetCore.Components.ElementReference that provides access to the NumericTextBox's container DOM element.

    Remarks

    This property allows you to access the DOM element of the NumericTextBox container for advanced manipulation or interaction scenarios.

    Event

    Gets or sets the original browser event arguments that triggered the blur event.

    Declaration
    public object Event { get; set; }
    Property Value
    Type Description
    System.Object

    An System.Object containing the original event arguments, or null if not available.

    Remarks

    This property provides access to the underlying browser event object that caused the blur event, allowing access to additional event properties if needed.

    Name

    Gets or sets the name of the blur event.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    A System.String value representing the event name, or null if not specified.

    Remarks

    This property typically contains "Blur" for blur events.

    Value

    Gets or sets the current value of the NumericTextBox when the blur event occurred.

    Declaration
    public T Value { get; set; }
    Property Value
    Type Description
    T

    The current value of type T, or null if the value is empty or invalid.

    Remarks

    This property contains the value of the NumericTextBox at the time it lost focus.

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