DxMenu.ItemTemplate Property

Specifies the template for menu items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

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