alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MentionClosingEventArgs

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

    Inheritance
    object
    MentionClosingEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MentionClosingEventArgs
    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
    bool

    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.

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