David-Moreira / BlazorXTabs

BlazorXTabs is an extended tabs component library providing various tab features for Blazor!
https://david-moreira.github.io/BlazorXTabs/
MIT License
34 stars 10 forks source link

Implement a RouteView component #10

Closed David-Moreira closed 3 years ago

David-Moreira commented 3 years ago

At the moment the way we wrap the pages as tabs, makes it so, that we have to manually notify statehaschanged. Make it so it's automatic, by wrapping the logic inside a BlazorXTabs RouteView component. Example: <XTabsRouteView CloseTabs="true" NewTabSetActive="true" RenderMode="BlazorXTabs.Configuration.RenderMode.Full" RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />

It's then up to the developer, if he'd like to use the old way or the route view component.