IRibbonItem Interface
Defines the programmatic interface for the DxRibbonItem component.
Namespace: DevExpress.Blazor.Ribbon
Assembly: DevExpress.Blazor.v25.2.dll
Declaration
public interface IRibbonItem :
IRibbonButtonBase<RibbonItemClickEventArgs>,
IRibbonGroupItem,
IRibbonGroupElement,
IRibbonElement,
IRibbonNode,
IRibbonInteractiveElement,
IRibbonIconSource,
IRibbonClickableItem<RibbonItemClickEventArgs>,
IRibbonGroupItemCollection
Related API Members
The following members return IRibbonItem objects:
Remarks
Use the IRibbonItem interface to read and modify DxRibbonItem component properties at runtime and customize the Ribbon item appearance and behavior.
Obtain an IRibbonItem instance with the @ref attribute or from Ribbon event arguments.
The following code snippet gets an IRibbonItem reference and enables/disables the corresponding item:
<DxRibbon>
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonItem Text="Toggle Item"
Click="ToggleItem" />
<DxRibbonItem Text="Test Item"
@ref="itemRef" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
@code {
IRibbonItem itemRef;
void ToggleItem(RibbonItemClickEventArgs e) {
itemRef.Enabled = !itemRef.Enabled;
}
}
See Also