The requested page is not available for the requested platform. You are viewing the content for Default platform.

BuilderFactoryExtensions.BootstrapAccordion(BuilderFactory) Method

Creates an Accordion control.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapAccordionBuilder BootstrapAccordion(
    this BuilderFactory builderFactory
)
<ExtensionAttribute>
Public Shared Function BootstrapAccordion(
    builderFactory As BuilderFactory
) As BootstrapAccordionBuilder

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Accordion settings.

Returns

Type Description
BootstrapAccordionBuilder

A builder for an Accordion control.

Remarks

Important

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create an Accordion control.

@(Html.DevExpress()
    .BootstrapAccordion()
    .Groups(groups => {
        groups.Add().Text("Tables")
        .Items(items => {
            items.Add()
                .Text("Users")
                .IconCssClass("fa fa-user");
            items.Add()
                .Text("Tasks")
                .IconCssClass("fa fa-tasks");
            items.Add()
                .Text("Scheduler")
                .IconCssClass("fa fa-calendar");
        });
        groups.Add().Text("Analysis")
         .Items(items => {
             items.Add()
                 .Text("Dashboard")
                 .IconCssClass("fa fa-dashboard");
             items.Add()
                 .Text("KPI")
                 .IconCssClass("fa fa-percent");
         });
    })
)
See Also