ChatMentionSelectEventArgs
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
Describes the mention entry selected from the mention popup.
- C#
- VB.NET
public class ChatMentionSelectEventArgs : ChatCancelableEventArgs
Public Class ChatMentionSelectEventArgs
Inherits ChatCancelableEventArgs
Constructors
ChatMentionSelectEventArgs(itemData, message, isInteracted, cancel, name, data)
Initializes a new instance of the ChatMentionSelectEventArgs class.
| Name | Type | Description |
|---|---|---|
| itemData | ChatUser | The user selected in the mention popup. |
| message | String | The text of the composer reported with the selection. |
| isInteracted | Boolean | true when the selection was made by the user. |
| cancel | Boolean | The initial value of Cancel. |
| name | String | The name of the client event, normally mentionSelect. |
| data | Object | The 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
IsInteracted
Boolean: Gets whether the selection was made by the user, with the mouse or the keyboard, rather than by code.
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.
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.