Skip to content

Commit

Permalink
Update Dynamic Tabs readme (#139)
Browse files Browse the repository at this point in the history
* update readme

Include Visible parameter info and link

* Update tabstrip/DynamicTabs/readme.md

Co-authored-by: Dimo Dimov <[email protected]>

Co-authored-by: Dimo Dimov <[email protected]>
  • Loading branch information
ntacheva and dimodi authored Dec 6, 2021
1 parent 35b4a2b commit 865b7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabstrip/DynamicTabs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Comments in the code offer more details.
You can dynamically create `TabStripTab` instances by looping through a collection of descriptors. To extract the underlying model from the currently active tab you can:

1. Create a collection of all Visible tabs
* This example shows how to do that by using the `Visible` property from the `TabDescriptor` as a condition.
* This example shows how to do that by using the `Visible` property from the `TabDescriptor` as a condition. **UI for Blazor 2.30 exposes a `Visible` parameter of the `TabStripTab` for easier control of tab visibility. Read more at [Tabs Configuration](https://docs.telerik.com/blazor-ui/components/tabstrip/tabs-configuration)**
1. Use the `ActiveTabIndex` and `ActiveTabIndexChanged`
* In the handler for the `ActiveTabIndexChanged` event you can get the model from the collection of visible tabs based on the index received as an argument in the event.
1. Create a deep copy of the model and store it in a property. This would ensure that the model would not be change unintentionally.
Expand Down

0 comments on commit 865b7e5

Please sign in to comment.