зеркало из https://github.com/telerik/blazor-docs.git
713 B
713 B
title | description | type | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
Set active tab by index | how to select or activate a tab by index. | how-to | Select tab by index | tabstrip-activate-by-index | 1422293 | kb |
Environment
Product | TabStrip for Blazor |
Description
I have a TabStrip that renders tabs dynamically based on a list. Is there a way to set the active tab based on an index or a key?
Solution
As of version 2.0.0, tabs are selected by index out of the box through the ActiveTabIndex
parameter. See the examples in the [Tab Strip documentation]({%slug components/tabstrip/overview%}).