Skip to main content
All docs
V26.1
  • DxRibbonTab.Attributes Property

    Specifies a collection of standard HTML attributes applied to the Ribbon Tab.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v26.1.dll

    Declaration

    [Parameter]
    public Dictionary<string, object> Attributes { get; set; }

    Property Value

    Type Description
    Dictionary<String, Object>

    A collection of attributes.

    Remarks

    Use the Attributes property to apply standard HTML attributes to the Ribbon Tab header.

    <DxRibbon>
        <DxRibbonTab Text="Home"
                     Attributes="tabAttributes">
            <DxRibbonGroup>
                <DxRibbonItem Text="New" />
            </DxRibbonGroup>
        </DxRibbonTab>
    </DxRibbon>
    
    @code {
        Dictionary<string, object> tabAttributes = new() {
            { "custom-attribute", "Home Tab" }
        };
    }
    

    To apply attributes to the tab content area, use the ContentAttributes property.

    See Also