alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class PromptSuggestionItemTemplateContext

    Provides context information for rendering a prompt suggestion item within the SfAIAssistView component.

    Inheritance
    object
    PromptSuggestionItemTemplateContext
    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.dll
    Syntax
    public class PromptSuggestionItemTemplateContext
    Remarks
    • Index – The zero-based position of this suggestion in the list.
    • PromptSuggestion – The suggestion text to display.
    Use this context inside a PromptSuggestionItemTemplate to customize how each suggestion is rendered.

    Constructors

    PromptSuggestionItemTemplateContext()

    Declaration
    public PromptSuggestionItemTemplateContext()

    Properties

    Index

    Gets the index of the prompt suggestion item in the SfAIAssistView component.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    int

    The index of the prompt suggestion item. The default is -1 .

    Remarks

    This property specifies the index for the prompt suggestion item in the AssistViewPrompt in the SfAIAssistView component.

    PromptSuggestion

    Gets or sets the prompt suggestion in the SfAIAssistView component.

    Declaration
    public string PromptSuggestion { get; set; }
    Property Value
    Type Description
    string

    A string representing the prompt suggestion. The default is null.

    Remarks

    This property contains the suggestion that can be used as prompt in the SfAIAssistView component.

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