Class EditableContextClickedEventArgs
Provides event data for the EditableContextClicked event when a user clicks on a context item within a thinking block.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.InteractiveChat.dll
Syntax
public class EditableContextClickedEventArgs
Remarks
This event argument class is passed to the EditableContextClicked event handler, providing details about the clicked context item and the associated user interaction.
Use this data to determine which context item was clicked, extract its properties, and perform custom logic such as opening files, executing queries, or updating application state.
Examples
Processing context item click details:
private async Task OnContextItemClicked(EditableContextClickedEventArgs args)
{
if (args.ContextItem == null) return;
// Get the clicked item's properties
var itemType = args.ContextItem.Type;
var itemName = args.ContextItem.Name;
var itemValue = args.ContextItem.Value;
// Perform action based on context type
Console.WriteLine($"Clicked {itemType}: {itemName} Value: {itemValue}");
}
Constructors
EditableContextClickedEventArgs()
Declaration
public EditableContextClickedEventArgs()
Properties
ContextItem
Gets the thinking context item that was clicked.
Declaration
public ThinkingContextItem ContextItem { get; set; }
Property Value
| Type | Description |
|---|---|
| ThinkingContextItem | The ThinkingContextItem instance that was clicked by the user, containing all properties including type, name, value, clickable state, and badge. The default value is null. |