menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AIAssistView - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AIAssistView

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    AIAssistView
    Namespace: Syncfusion.EJ2.InteractiveChat
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class AIAssistView : EJTagHelper

    Constructors

    AIAssistView()

    Declaration
    public AIAssistView()

    Properties

    ActiveView

    Specifies the index of the active view in the AIAssistView component. Determines the currently active and visible view.

    Declaration
    public int ActiveView { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 0

    BannerTemplate

    Specifies the template for the banner in the AIAssistView component. Represents the content or layout used to render the banner. Can be a string or a function.

    Declaration
    public string BannerTemplate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Created

    Event triggers when the component is created.

    Declaration
    public string Created { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    CssClass

    Specifies custom CSS classes for the AIAssistView component. Allows for additional custom styling.

    Declaration
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    EnablePersistence

    Enable or disable persisting component's state between page reloads.

    Declaration
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    FooterTemplate

    Specifies the template for the footer in the AIAssistView component. Defines the content or layout used to render the footer. Can be a string or a function.

    Declaration
    public string FooterTemplate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Height

    Specifies the height of the AIAssistView component.

    Declaration
    public string Height { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "100%"

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type
    System.Object

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Prompt

    Specifies the text input prompt for the AIAssistView component.

    Declaration
    public string Prompt { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    PromptChanged

    Event triggered when the prompt text changed in the AIAssistView component.

    Declaration
    public string PromptChanged { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    PromptIconCss

    Specifies the CSS class for the prompter avatar in the AIAssistView component. Allows custom styling for the prompt avatar.

    Declaration
    public string PromptIconCss { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    PromptItemTemplate

    Specifies the template for rendering prompt items in the AIAssistView component. Defines the content or layout used to render prompt items, and can be either a string or a function. The template context includes prompt text and toolbar items.

    Declaration
    public string PromptItemTemplate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    PromptPlaceholder

    Specifies the placeholder text for the prompt input text area in the AIAssistView component.

    Declaration
    public string PromptPlaceholder { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "Type prompt for assistance..."

    PromptRequest

    Event triggered when a prompt request is made in the AIAssistView component. Provides details about the prompt request, including whether it should be cancelled, the prompt text, output, and toolbar items.

    Declaration
    public string PromptRequest { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Prompts

    Specifies the collection of prompts and their responses in the AIAssistView component.

    Declaration
    public object Prompts { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    PromptSuggestionItemTemplate

    Specifies the template for rendering prompt suggestion items in the AIAssistView component. Defines the content or layout used to render prompt suggestion items, and can be either a string or a function. The template context includes the index and suggestion text.

    Declaration
    public string PromptSuggestionItemTemplate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    PromptSuggestions

    Specifies the list of prompt suggestions in the AIAssistView component. Contains suggestions that can be used as prompts.

    Declaration
    public string[] PromptSuggestions { get; set; }
    Property Value
    Type Description
    System.String[]

    The default value is null

    PromptSuggestionsHeader

    Specifies the header text for the prompt suggestions in the AIAssistView component. Provides a header for the list of suggestions.

    Declaration
    public string PromptSuggestionsHeader { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    PromptToolbarSettings

    Specifies the settings for the prompt toolbar in the AIAssistView component. Represents the configuration for the toolbar associated with prompt items.

    Declaration
    public AIAssistViewPromptToolbarSettings PromptToolbarSettings { get; set; }
    Property Value
    Type Description
    AIAssistViewPromptToolbarSettings

    The default value is null

    ResponseIconCss

    Specifies the CSS class for the responder avatar in the AIAssistView component. Allows custom styling for the responder avatar.

    Declaration
    public string ResponseIconCss { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ResponseItemTemplate

    Specifies the template for rendering response items in the AIAssistView component. Defines the content or layout used to render response items, and can be either a string or a function. The template context includes the prompt text, response text, and toolbar items.

    Declaration
    public string ResponseItemTemplate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    ResponseToolbarSettings

    Specifies the settings for the response toolbar in the AIAssistView component. Represents the configuration for the toolbar associated with response items.

    Declaration
    public AIAssistViewResponseToolbarSettings ResponseToolbarSettings { get; set; }
    Property Value
    Type Description
    AIAssistViewResponseToolbarSettings

    The default value is null

    ShowClearButton

    Specifies whether the clear button of text area is displayed in the AIAssistView component. Determines if a button for clearing the prompt text area is shown or hidden.

    Declaration
    public bool ShowClearButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    ShowHeader

    Specifies whether the header is displayed in the AIAssistView component.

    Declaration
    public bool ShowHeader { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    StopRespondingClick

    Triggers when the 'Stop Responding' button is clicked while a prompt request is in progress. This event allows users to handle stopping the response generation and update the UI accordingly.

    Declaration
    public string StopRespondingClick { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ToolbarSettings

    Specifies the toolbar settings for the AIAssistView component. Represents the configuration for toolbar items and actions within the component.

    Declaration
    public AIAssistViewToolbarSettings ToolbarSettings { get; set; }
    Property Value
    Type Description
    AIAssistViewToolbarSettings

    The default value is null

    Views

    Specifies the collection of assist view models in the AIAssistView component. Represents the views available in the assist view.

    Declaration
    public List<AIAssistViewView> Views { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<AIAssistViewView>

    The default value is null

    Width

    Specifies the width of the AIAssistView component.

    Declaration
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "100%"

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved