Skip to main content

DxMenu.ItemTemplate Property

Specifies the template for menu items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public RenderFragment<IMenuItemInfo> ItemTemplate { get; set; }

Property Value

Type Description
RenderFragment<IMenuItemInfo>

The template content.

Remarks

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

You can specify a template for all items or for an individual item. Individual templates override common templates.

What to Customize Common Templates Individual Templates
A whole item DxMenu.ItemTemplate DxMenuItem.Template
An item’s text DxMenu.ItemTextTemplate DxMenuItem.TextTemplate
An item’s submenu DxMenu.SubMenuTemplate DxMenuItem.SubMenuTemplate
See Also