Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxMenu.HamburgerIconCssClass Property

Specify a CSS class for the hamburger button’s icon.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public string HamburgerIconCssClass { get; set; }

#Property Value

Type Default Description
String null

A CSS class name.

#Remarks

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.

Razor
<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>

Hamburger Button Position

Watch Video

See Also