menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CustomView - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CustomView

    Inheritance
    System.Object
    CustomView
    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 String.Empty.

    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 String.Empty.

    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 null.

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved