blazor-devexpress-dot-blazor-dot-dxtabs-837b0ce5.md
Fires when the active tab is changed.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public EventCallback<int> ActiveTabIndexChanged { get; set; }
| Type | Description |
|---|---|
| Int32 |
An integer value that specifies the new active tab’s zero-based index.
|
The ActiveTabIndexChanged event allows you to handle the active tab change.
The following code snippet handles the ActiveTabIndexChanged event:
<DxTabs ActiveTabIndex="@ActiveTabIndex" ActiveTabIndexChanged=@OnActiveTabIndexChanged>
<DxTab Text="Home"></DxTab>
<DxTab Text="Products"></DxTab>
<DxTab Text="Support"></DxTab>
</DxTabs>
Current active index: @ActiveTabIndex
@code {
int ActiveTabIndex;
void OnActiveTabIndexChanged(int index) {
ActiveTabIndex = index;
}
}
See Also