ChatSuggestionClickEventArgs
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
Provides data for the SuggestionClick event.
- C#
- VB.NET
public class ChatSuggestionClickEventArgs : ChatCancelableEventArgs
Public Class ChatSuggestionClickEventArgs
Inherits ChatCancelableEventArgs
Constructors
ChatSuggestionClickEventArgs(text, index, cancel, name, data)
Initializes a new instance of the ChatSuggestionClickEventArgs class.
| Name | Type | Description |
|---|---|---|
| text | String | The text of the clicked suggestion. |
| index | Int32 | The position of the clicked suggestion in the list, or -1 when it is not available. |
| cancel | Boolean | The initial value of Cancel. |
| name | String | The name of the client event, normally suggestionClick. |
| data | Object | The raw event data received from the browser, or null. |
Example:
The following example, placed in a class derived from Chat, raises SuggestionClick for the first suggestion.
string text = this.Suggestions[0];
this.OnSuggestionClick(new ChatSuggestionClickEventArgs(text, 0, false, "suggestionClick", null));
Properties
Index
Int32: The index of the clicked suggestion.
The value is the zero-based position of the clicked item in the rendered suggestion list, or -1 when the browser does not report it.
Text
String: The text of the clicked suggestion.