Class CustomView
Inheritance
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.dll
Syntax
public class CustomView : OwningComponentBase
Constructors
CustomView()
Declaration
public CustomView()
Properties
Header
Gets or sets the name of the custom view in the SfAIAssistView component.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name displayed in the custom view. The default is |
Remarks
This property specifies the name of the custom view in the SfAIAssistView component.
IconCss
Gets or sets the icon CSS for the custom view in the SfAIAssistView component.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | The CSS class for the icon of custom view. The default is |
Remarks
This property specifies the CSS class for the custom view icon used in the SfAIAssistView component.
ViewTemplate
Gets or sets a template that defines the appearance of the custom 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 custom view. The default is |
Remarks
This property specifies the template used to render the appearance of the CustomView component.
Examples
<SfAIAssistView>
<ChildContent>
<AssistViews>
<CustomView Header="NoteBook">
<ViewTemplate>
// Place your template item here
</ViewTemplate>
</CustomView>
</AssistViews>
</ChildContent>
</SfAIAssistView>
Methods
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 |