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 |
|
Remarks
If this property is set to true
, the dropdown popup will remain open instead of closing.