Skip to main content

DxAccordion.SubItemCollapseButtonIconCssClass Property

Specifies the CSS class name for a subitem’s Collapse button icon.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
[Parameter]
public string SubItemCollapseButtonIconCssClass { get; set; }

Property Value

Type Default Description
String null

The CSS class name.

Remarks

Use the SubItemExpandButtonIconCssClass and SubItemCollapseButtonIconCssClass properties to specify the CSS classes for expand and collapse buttons.

The following code snippet assigns an icon to the collapse button:

<DxAccordion SubItemCollapseButtonIconCssClass="oi oi-minus">
    <Items>
        <DxAccordionItem Text="Grid" />
        <DxAccordionItem Text="Navigation and Layout">
            <Items>
                <DxAccordionItem Text="Accordion">
                    <Items>
                        <DxAccordionItem Text="API" />
                        <DxAccordionItem Text="Demos" />
                        <DxAccordionItem Text="Documents" />
                    </Items>
                </DxAccordionItem>
                <DxAccordionItem Text="Stack Layout" />
            </Items>
        </DxAccordionItem>
        <DxAccordionItem Text="Data Editors" />
        <DxAccordionItem Text="Scheduler" />
    </Items>
</DxAccordion>

SubItem: Collapse Icon

See Also