DxRibbonTab.ContentAttributes Property
Specifies a collection of standard HTML attributes applied to Ribbon Tab content.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
Declaration
[Parameter]
public Dictionary<string, object> ContentAttributes { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, Object> | A collection of attributes. |
Remarks
Use the ContentAttributes property to apply standard HTML attributes to the Ribbon Tab content area.
<DxRibbon>
<DxRibbonTab Text="Home"
ContentAttributes="tabAttributes">
<DxRibbonGroup>
<DxRibbonItem Text="New" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
@code {
Dictionary<string, object> tabAttributes = new() {
{ "custom-attribute", "Home Tab Content" }
};
}
To apply attributes to the tab header, use the Attributes property.
See Also