alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class EditableContextClickedEventArgs

    Provides event data for the EditableContextClicked event when a user clicks on a context item within a thinking block.

    Inheritance
    object
    EditableContextClickedEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Remarks

    This property provides access to all the clicked item's metadata. Use the Type, Name, and Value properties to identify the item and determine appropriate handling logic.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved