Skip to main content

ChatMentionSelectEventArgs

Namespace: Wisej.Web.Ext.Syncfusion2

Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)

Describes the mention entry selected from the mention popup.

public class ChatMentionSelectEventArgs : ChatCancelableEventArgs

Constructors​

Instance member ChatMentionSelectEventArgs(itemData, message, isInteracted, cancel, name, data)​

Initializes a new instance of the ChatMentionSelectEventArgs class.

NameTypeDescription
itemDataChatUserThe user selected in the mention popup.
messageStringThe text of the composer reported with the selection.
isInteractedBooleantrue when the selection was made by the user.
cancelBooleanThe initial value of Cancel.
nameStringThe name of the client event, normally mentionSelect.
dataObjectThe raw event data received from the browser, or null.

Example:

The following example, placed in a class derived from Chat, raises MentionSelect for the first user of the mention list.

ChatUser user = this.MentionUsers[0];
this.OnMentionSelect(new ChatMentionSelectEventArgs(user, "@" + user.User, false, false, "mentionSelect", null));

Properties​

Instance member IsInteracted​

Boolean: Gets whether the selection was made by the user, with the mouse or the keyboard, rather than by code.

Instance member ItemData​

ChatUser: Gets the user that was selected in the mention popup.

The value is one of the users assigned to MentionUsers, rebuilt from the data sent by the browser.

Instance member Message​

String: Gets the text of the composer reported with the selection.

The value is an empty string when the browser does not report the text.