Skip to main content

DxAccordionItem.HeaderTextTemplate Property

Specifies a template for the Accordion item’s header text.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public RenderFragment<IAccordionItemInfo> HeaderTextTemplate { get; set; }

Property Value

Type Description
RenderFragment<IAccordionItemInfo>

The header text template.

Remarks

This property overrides the DxAccordion.ItemTextTemplate property value. The following example makes the Shapes item’s header italic:

<DxAccordion>
    <Items>
        <DxAccordionItem>
            <HeaderTextTemplate>
                <em>Shapes</em>
            </HeaderTextTemplate>
            <Items>
                <DxAccordionItem Text="Circle" />
                <DxAccordionItem Text="Triangle" />
                <DxAccordionItem Text="Square" />
            </Items>
        </DxAccordionItem>
        <DxAccordionItem Text="Templates" />
    </Items>
</DxAccordion>

Header text template

See Also