Class AssistView
Inheritance
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.dll
Syntax
public class AssistView : OwningComponentBase
Constructors
AssistView()
Declaration
public AssistView()
Properties
BannerTemplate
Gets or sets the template for the initial view of the SfAIAssistView component.
Declaration
public RenderFragment BannerTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the template for the initial view. The default value is |
Remarks
This template defines the initial content displayed when the SfAIAssistView component is rendered.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<AssistView Header="AI Generation">
<BannerTemplate>
// Place your template item here
</BannerTemplate>
</AssistView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
FooterTemplate
Gets or sets the template for the footer item of the assist view in the SfAIAssistView component.
Declaration
public RenderFragment FooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the template for the footer item. The default is |
Remarks
This property specifies the template used to render the footer item of the assist view in the SfAIAssistView component.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<AssistView Header="AI Generation">
<FooterTemplate>
// Place your template item here
</FooterTemplate>
</AssistView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
Header
Gets or sets the name of the assist view in the SfAIAssistView component.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name displayed in the assist view. The default is |
Remarks
This property specifies the name of the assist view in the SfAIAssistView component.
IconCss
Gets or sets the icon CSS for the assist view in the SfAIAssistView component.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | The CSS class for the icon of assist view. The default is |
Remarks
This property specifies the CSS class for the assist view icon used in the SfAIAssistView component.
PromptItemTemplate
Gets or sets the template for the prompt item in the SfAIAssistView component.
Declaration
public RenderFragment<PromptItemTemplateContext> PromptItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<PromptItemTemplateContext> | A Microsoft.AspNetCore.Components.RenderFragment<> representing the template for the prompt item. The default is |
Remarks
This property specifies the template used to render the prompt item in the SfAIAssistView component.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<AssistView Header="AI Generation">
<PromptItemTemplate>
<p>@context.Prompt</p>
</PromptItemTemplate>
</AssistView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
PromptSuggestionItemTemplate
Gets or sets the template for the prompt suggestion item in the SfAIAssistView component.
Declaration
public RenderFragment<PromptSuggestionItemTemplateContext> PromptSuggestionItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<PromptSuggestionItemTemplateContext> | A Microsoft.AspNetCore.Components.RenderFragment<> representing the template for the prompt suggestion item. The default is |
Remarks
This property specifies the template used to render the prompt suggestion item in the SfAIAssistView component.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<AssistView Header="AI Generation">
<PromptSuggestionItemTemplate>
<p>@context.PromptSuggestion</p>
</PromptSuggestionItemTemplate>
</AssistView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
ResponseItemTemplate
Gets or sets the template for the output response item in the SfAIAssistView component.
Declaration
public RenderFragment<ResponseItemTemplateContext> ResponseItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<ResponseItemTemplateContext> | A Microsoft.AspNetCore.Components.RenderFragment<> representing the template for the output response item. The default is |
Remarks
This property specifies the template used to render the output response item in the SfAIAssistView component.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<AssistView Header="AI Generation">
<OutputItemTemplate>
<p>@context.Response</p>
</OutputItemTemplate>
</AssistView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
ShowClearButton
Gets or sets a value indicating whether the clear button is shown in the prompt text area field in the SfAIAssistView component.
Declaration
public bool ShowClearButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Use this property to control the visibility of the clear button shown in the prompt text area field in the SfAIAssistView component.
ViewTemplate
Gets or sets a template that defines the appearance of the assist view.
Declaration
public RenderFragment ViewTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the template for the assist view. The default is |
Remarks
This property specifies the template used to render the appearance of the AssistView component.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<AssistView Header="NoteBook">
<ViewTemplate>
// Place your template item here
</ViewTemplate>
</AssistView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |