Class CustomView
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.dll
Syntax
public class CustomView : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
CustomView()
Declaration
public CustomView()
Properties
Header
Gets or sets the name of the custom view in the SfAIAssistView component.
Declaration
[Parameter]
public string Header { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[Parameter]
public string IconCss { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[Parameter]
public RenderFragment ViewTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A 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(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |