menu

Blazor

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

    Show / Hide Table of Contents

    Class MentionClosingEventArgs

    Provides event data for the Closing event when the Mention suggestion popup is about to close.

    Inheritance
    System.Object
    MentionClosingEventArgs
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MentionClosingEventArgs : Object
    Remarks

    This event allows cancellation or custom logic before the dropdown popup closes.

    Examples
    <SfMention TValue="Employee" DataSource="@Employees" Closing="OnMentionClosing">
    </SfMention>
    @code {
        private void OnMentionClosing(MentionClosingEventArgs args)
        {
            if (ShouldPreventClose)
                args.Cancel = true;
        }
    }

    Constructors

    MentionClosingEventArgs()

    Declaration
    public MentionClosingEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the dropdown popup close action should be canceled.

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

    true to cancel the closing action; otherwise, false. Default is false.

    Remarks

    If this property is set to true, the dropdown popup will remain open instead of closing.

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