Skip to main content

DxMenu.ItemTextTemplate Property

Specifies the text template for menu items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor


public RenderFragment<IMenuItemInfo> ItemTextTemplate { get; set; }

Property Value

Type Description

The template content.


The Menu component allows you to use templates to customize the layout and appearance of menu items and their parts.

Use the ItemTextTemplate to specify a common text template for all menu items.

<div class="card w-auto">
            Item @context.Text
            <DxMenuItem Text="1" />
            <DxMenuItem Text="2" />

Text template for all menu items

See Also