DxMenuItem.CssClass Property

Specifies the name of the CSS class applied to the menu item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
public string CssClass { get; set; }

Property Value

Type Description
String

The CSS class name.

Remarks

<DxMenu>
    <Items>
        <DxMenuItem Text="Products" IconCssClass="oi oi-layers">
            <Items>
                <DxMenuItem Text="Subscriptions / Packs" />
            </Items>
        </DxMenuItem>
        <DxMenuItem Text="Support" IconCssClass="oi oi-people">
            <Items>
                <DxMenuItem Text="Knowledge Base" />
            </Items>
        </DxMenuItem>
        <DxMenuItem CssClass="ml-auto">
            <Template>
                <div class="container">
                    <input type="text" class="form-control form-control-sm center" placeholder="Search...">
                </div>
            </Template>
        </DxMenuItem>
    </Items>
</DxMenu>
See Also