Back to Devexpress

DxRibbonTab.IconCssClass Property

blazor-devexpress-dot-blazor-dot-dxribbontab-fd9f2998.md

latest1.8 KB
Original Source

DxRibbonTab.IconCssClass Property

Specifies the name of the CSS class applied to the Ribbon tab’s icon.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string IconCssClass { get; set; }

Property Value

TypeDefaultDescription
Stringnull

The CSS class name.

|

Remarks

Use the IconCssClass property to specify a CSS class of the Ribbon tab’s icon. To reference an icon by its CSS class, connect an icon library to your project.

The following code snippet assigns the icon from DevExtreme Icon Library to the Ribbon’s Home tab:

razor
<DxRibbon>
    <DxRibbonTab Text="Home"
                 IconCssClass="dx-icon-home">
        <DxRibbonGroup Text="Style">
            <DxRibbonItem Text="Bold" IconCssClass="dx-icon-bold" />
            <DxRibbonItem Text="Italic" IconCssClass="dx-icon-italic" />
            <DxRibbonItem Text="Underline" IconCssClass="dx-icon-underline" />
        </DxRibbonGroup>
    </DxRibbonTab>
    <DxRibbonTab Text="Insert" />
</DxRibbon>

Note

To specify a custom image as a tab icon, use the IconUrl property.

See Also

DxRibbonTab Class

DxRibbonTab Members

DevExpress.Blazor Namespace