alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class ResponseActions

    Represents the response settings configuration for the SfInlineAIAssist component, providing options to customize the response popup behavior and handle response action item selection.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    ResponseActions
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.InteractiveChat
    Assembly: Syncfusion.Blazor.InteractiveChat.dll
    Syntax
    public class ResponseActions : OwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    Use this class to configure response-related settings within the SfInlineAIAssist component.

    Examples

    The following example demonstrates how to declare and configure ResponseActions inside a SfInlineAIAssist component.

    <SfInlineAIAssist>
        <ResponseActions Items="@responseItems" ItemSelect = "@HandleResponseItemSelect">
        </ResponseActions>
    </SfInlineAIAssist>
    
    @code {
        private List<ResponseItem> responseItems = new List<ResponseItem>()
        {
            new ResponseItem
            {
                IconCss = "e-icons",
                Label = "Apply",
                Tooltip = "Apply changes",
                Disabled = false,
                ID = "applyCommand"
             }
         };
    
        private Task HandleResponseItemSelect(ResponseItemSelectEventArgs args)
        {
            if (args.Item.Label == "Apply")
            {
                Console.WriteLine("Apply action selected");
            }
            else if (args.Item.Label == "Cancel")
            {
                args.Cancel = true;
            }
            return Task.CompletedTask;
        }
    }

    Constructors

    ResponseActions()

    Declaration
    public ResponseActions()

    Properties

    ItemSelect

    Gets or sets the callback that is invoked when a response item is selected.

    Declaration
    [Parameter]
    public EventCallback<ResponseItemSelectEventArgs> ItemSelect { get; set; }
    Property Value
    Type Description
    EventCallback<ResponseItemSelectEventArgs>

    An EventCallback<TValue> of type ResponseItemSelectEventArgs that handles the item selection event. The default value is an empty callback (no handler is assigned).

    Items

    Gets or sets the collection of ResponseItem instances configured within the ResponseActions of the SfInlineAIAssist component.

    Declaration
    [Parameter]
    public List<ResponseItem> Items { get; set; }
    Property Value
    Type Description
    List<ResponseItem>

    A List<T> of ResponseItem representing the response action items displayed in the response popup. The default value is an empty collection.

    Remarks

    Use this property to define and configure the list of ResponseItem instances that appear in the response popup of the SfInlineAIAssist component after an AI response is generated.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose(bool)

    Dispose unmanaged resources in the Syncfusion Blazor component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Boolean value to dispose the object.

    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    Handles parameter updates for the InlineToolbar component.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

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