Skip to main content
All docs
V24.2

DxRibbonApplicationTab.Click Event

Fires when a user clicks the application tab.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<TabClickEventArgs> Click { get; set; }

Event Data

The Click event's data class is TabClickEventArgs. The following properties provide information specific to this event:

Property Description
MouseEventArgs The Blazor’s built-in MouseEventArgs event arguments.
TabIndex Gets the clicked tab’s index.
TabInfo Returns information about a tab related to the event.

Remarks

Handle the Click event to respond to an application tab click.

<DxDrawer @bind-IsOpen="IsFileMenuOpen" PanelWidth="100px" >
    <BodyTemplate>
        <DxMenu Orientation="Orientation.Vertical">
            <Items>
                <DxMenuItem Text="🢀" Click="@(() => IsFileMenuOpen = false)" />
                <DxMenuItem Text="New" Click="@(() => ClickNew())"/>
                <DxMenuItem Text="Open" Click="@(() => ClickOpen())"/>
                <DxMenuItem Text="Save as" Click="@(() => ClickSaveAs())"/>
                <DxMenuItem Text="Contacts" Click="@(() => ClickContacts())"/>
                <DxMenuItem Text="About" Click="@(() => ClickAbout())"/>
            </Items>
        </DxMenu>
    </BodyTemplate>
    <TargetContent>
        <DxRibbon >
            <DxRibbonApplicationTab Text="File" Click="@(() => IsFileMenuOpen = true)" />
            <DxRibbonTab Text="Home">...</DxRibbonTab>
            <DxRibbonTab Text="Insert">...</DxRibbonTab>
        </DxRibbon>
    </TargetContent>
</DxDrawer>

@code {
    bool IsFileMenuOpen { get; set; } = false;
}

Application tab

See Also