blazor-devexpress-dot-blazor-dot-dxmenu-f657836f.md
Specify a CSS class for the hamburger button’s icon.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(null)]
[Parameter]
public string HamburgerIconCssClass { get; set; }
| Type | Default | Description |
|---|---|---|
| String | null |
A CSS class name.
|
Menu items can be displayed in a hamburger menu in two cases:
If you set the DisplayMode to Mobile and set the Orientation to Horizontal.
If you set the DisplayMode to Desktop and set the CollapseItemsToHamburgerMenu property to true, menu items are collapsed into a hamburger menu when the width of the browser window changes and there is not enough space to display the items in the menu panel.
You can use the HamburgerButtonPosition and HamburgerIconCssClass properties to change the hamburger button’s position and icon.
<div class="card w-auto">
<DxMenu Title="DevExpress"
CollapseItemToIconMode="MenuCollapseItemToIconMode.Sequentially"
CollapseItemsToHamburgerMenu="true"
HamburgerButtonPosition="MenuHamburgerButtonPosition.Right"
HamburgerIconCssClass="oi oi-menu">
<Items>
<DxMenuItem Text="Products" IconCssClass="oi oi-layers" />
<DxMenuItem Text="Support" IconCssClass="oi oi-person" />
<DxMenuItem Text="Documentation" IconCssClass="oi oi-book" />
<DxMenuItem Text="Demos" IconCssClass="oi oi-monitor" />
<DxMenuItem Text="Blogs" IconCssClass="oi oi-bell" />
<DxMenuItem Text="Search" IconCssClass="oi oi-magnifying-glass" />
</Items>
</DxMenu>
</div>
See Also