Back to Devexpress

TabClickEventArgs.TabInfo Property

blazor-devexpress-dot-blazor-dot-tabclickeventargs.md

latest1.2 KB
Original Source

TabClickEventArgs.TabInfo Property

Returns information about a tab related to the event.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public ITabInfo TabInfo { get; }

Property Value

TypeDescription
ITabInfo

An object that stores information about a tab related to the event.

|

Remarks

Use the TabInfo event argument to obtain information about the processed tab.

razor
<DxTabs TabClick="OnTabClick">
    <DxTab Text="Home"></DxTab>
    <DxTab Text="Products"></DxTab>
    <DxTab Text="Support"></DxTab>
</DxTabs>

@ClickedTab

@code {
    public string ClickedTab { get; set; } = "";

    void OnTabClick(TabClickEventArgs e) {
        ClickedTab = $"The '{e.TabInfo.Text}' tab has been clicked";
    }
}

See Also

TabClickEventArgs Class

TabClickEventArgs Members

DevExpress.Blazor Namespace