menu

Blazor

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

    Show / Hide Table of Contents

    Class AccordionItems

    Represents a collection of AccordionItem.

    Inheritance
    System.Object
    AccordionItems
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class AccordionItems : OwningComponentBase
    Remarks

    To generate dynamic AccordionItem based on collection, use @foreach within AccordionItems tag directive.

    Examples

    In the below code example, a basic accordion has been rendered using AccordionItems tag directive.

    <SfAccordion>
        <AccordionItems>
            <AccordionItem Header="ASP.NET">
                <ContentTemplate>
                    Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web applications and XML Web services.
                </ContentTemplate>
            </AccordionItem>
            <AccordionItem Header="ASP.NET MVC">
                <ContentTemplate>
                    The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.
                </ContentTemplate>
            </AccordionItem>
            <AccordionItem Header="JavaScript">
                <ContentTemplate>
                    JavaScript (JS) is an interpreted computer programming language. It was originally implemented as part of web browsers so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter the document content that was displayed.
                </ContentTemplate>
            </AccordionItem>
        </AccordionItems>
    </SfAccordion>

    Constructors

    AccordionItems()

    Declaration
    public AccordionItems()

    Properties

    ChildContent

    Gets or sets the child content for the accordion items.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.RenderFragment

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose(Boolean)

    Dispose unmanaged resources in the Syncfusion Blazor component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Boolean value to dispose the object.

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

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