Back to Devexpress

IRibbonTab Interface

blazor-devexpress-dot-blazor-dot-ribbon-6266e2cc.md

latest1.8 KB
Original Source

IRibbonTab Interface

Defines the programmatic interface for the DxRibbonTab component.

Namespace : DevExpress.Blazor.Ribbon

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public interface IRibbonTab :
    IRibbonTabBase<RibbonTabClickEventArgs>,
    IRibbonElement,
    IRibbonNode,
    IRibbonIconSource,
    IRibbonClickableItem<RibbonTabClickEventArgs>,
    IRibbonInteractiveElement

The following members return IRibbonTab objects:

Remarks

Use the IRibbonTab interface to read and modify DxRibbonTab component properties at runtime and customize the Ribbon application tab’s appearance and behavior.

Obtain an IRibbonTab instance with the @ref attribute or from Ribbon event arguments.

The following code snippet gets an IRibbonTab reference and toggles the corresponding tab:

razor
<DxRibbon>
    <DxRibbonTab Text="Home">
        <DxRibbonGroup>
            <DxRibbonItem Text="Toggle Tab"
                          Click="ToggleTab" />
        </DxRibbonGroup>
    </DxRibbonTab>
    <DxRibbonTab Text="Insert"
                 @ref="tabReference">
        <!-- ... -->
    </DxRibbonTab>
</DxRibbon>

@code {
    IRibbonTab tabReference;

    void ToggleTab(RibbonItemClickEventArgs e) {
        tabReference.Visible = !tabReference.Visible;
    }
}

See Also

IRibbonTab Members

DevExpress.Blazor.Ribbon Namespace