menu

Blazor

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

    Show / Hide Table of Contents

    Class BeforeOpenCloseEventArgs

    Provides information about the OnOpen and OnClose event callbacks.

    Inheritance
    System.Object
    BeforeOpenCloseEventArgs
    ColorPickerCloseEventArgs
    ColorPickerOpenEventArgs
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeOpenCloseEventArgs : Object
    Remarks

    This class contains event data for popup open and close events, allowing you to control whether the operation should proceed.

    Constructors

    BeforeOpenCloseEventArgs()

    Declaration
    public BeforeOpenCloseEventArgs()

    Properties

    Cancel

    Gets or sets a value that indicates whether to allow or prevent the popup operation in ColorPicker.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the popup operation should be cancelled; otherwise, false. The default value is false.

    Remarks

    Set this property to true in the event handler to prevent the popup from opening or closing.

    Element

    Gets or sets the ColorPicker popup element reference.

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

    An Microsoft.AspNetCore.Components.ElementReference that represents the ColorPicker popup element.

    Remarks

    This element reference can be used to access the DOM element of the popup for custom operations.

    Name

    Gets or sets the name of the event being triggered.

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

    A string value indicating the event name (e.g., "OnOpen", "OnClose"). The default value is null.

    Remarks

    This property helps identify which specific event is being triggered when using shared event handlers.

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