BlazorXTabs 2.0.0
dotnet add package BlazorXTabs --version 2.0.0
NuGet\Install-Package BlazorXTabs -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorXTabs" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorXTabs --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlazorXTabs, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BlazorXTabs as a Cake Addin #addin nuget:?package=BlazorXTabs&version=2.0.0 // Install BlazorXTabs as a Cake Tool #tool nuget:?package=BlazorXTabs&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BlazorXTabs
An extended tabs component library providing various tab features for Blazor!
Checkout all the examples at: BlazorXTabs Demo
Main Features:
- Close tabs
- Navigate to page and render it as a tab
- Tabs won't duplicate when navigating to the same page
- Use XTabs classes to further customize the look
- Keep tabs state when switching between tabs
- Bind to events: Selected / Changed / Removed
- v1.2.0
- Setup wizard like tabs with events: Previous / Next and customizable previous/next buttons
- Possibility to set the active tab to Loading
- v1.3.0
- Able to drag & drop tabs
- v1.4.0
- Able to replace the standard RouteView component with a XTabsRouteView component that automatically renders the pages as tabs
- v1.5.0
- When CloseTabs is enabled. Able to close all tabs and configure a threshold to display the close all tabs button.
- When CloseTabs is enabled. Able to use mouse middle button click to close the tab.
- When CloseTabs is enabled. Able to limit closeable tabs to 1.
- v1.6.0
- Fixed RenderMode.Partial duplicating tabs
- Introduced XTabsAuthorizeRouteView to allow tabs integration with Authentication
- v1.7.0
- NET6 Support
- v1.8.0
- NET7 Support
- v1.9.0
- Introduced NavigationMode, this is a XTabsRouteView only setting.
- NavigationMode.Standard : This is the default and XTabs will work as it always did. Clicking a Page Tab will set it as active.
- NavigationMode.Navigable : This new setting will make it so that whenever a Page Tab is set to active, it additionally triggers navigation. This is usefull to sync the browser url to the currently active Page Tab.
- Introduced NavigationMode, this is a XTabsRouteView only setting.
- v2.0.0
- NET8 Support
Examples:
Standard usage:
<XTabs>
<XTab Title="Tab1">
Content 1
</XTab>
<XTab Title="Tab2">
Content 2
</XTab>
</XTabs>
Using the XTabsRouteView or XTabsAuthorizeRouteView to render pages as tabs:
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<XTabsRouteView CloseTabs="true" NewTabSetActive="true"
NavigationMode="BlazorXTabs.Configuration.NavigationMode.Navigable"
RenderMode="BlazorXTabs.Configuration.RenderMode.Full"
RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
Use the XTabPageAttribute to set the page's tab title & other relevant parameters
@attribute [XTabPageAttribute("Home")]
Using as a wizard:
<XTab Title="Steps example">
<XTabs RenderMode="BlazorXTabs.Configuration.RenderMode.Steps">
<XTab Title="Step1">
This is step 1!
</XTab>
<XTab Title="Step2">
This is step 2!
</XTab>
<XTab Title="Step3">
This is the last step. Step 3!
</XTab>
</XTabs>
</XTab>
Drag&Drop:
<XTab Title="Drag Example">
<XTabs IsDraggable="true" RenderMode="BlazorXTabs.Configuration.RenderMode.Partial" >
<XTab Title="1. I can be dragged!!">
<p>I can be dragged!!</p>
</XTab>
<XTab Title="2. Drag me!">
<p>Drag me!</p>
</XTab>
<XTab Title="3. Please drag me!! I hate being last place!">
<p>Please drag me!! I hate being last place!</p>
</XTab>
</XTabs>
</XTab>
Setup:
- You can install the package via the nuget package manager just search for BlazorXTabs. You can also install via powershell using the following command.
Install-Package BlazorXTabs
- Or via the dotnet CLI.
dotnet add package BlazorXTabs
- If you'd like to bring in XTabs default styling, don't forget to add:
<link href="{YOUR-PROJECT-NAME}.styles.css" rel="stylesheet" />
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Microsoft.AspNetCore.Components.Authorization (>= 5.0.17)
- Microsoft.AspNetCore.Components.Web (>= 5.0.17)
-
net6.0
- Microsoft.AspNetCore.Components.Authorization (>= 6.0.0)
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
-
net7.0
- Microsoft.AspNetCore.Components.Authorization (>= 7.0.0)
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
-
net8.0
- Microsoft.AspNetCore.Components.Authorization (>= 8.0.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2.0.0 | 2,213 | 11/15/2023 | |
1.9.0 | 812 | 3/22/2023 | |
1.8.1 | 384 | 12/4/2022 | |
1.8.1-rc | 171 | 10/19/2022 | |
1.8.0-rc | 211 | 8/24/2022 | |
1.7.0 | 1,454 | 11/9/2021 | |
1.6.2 | 346 | 11/5/2021 | |
1.6.1 | 419 | 11/5/2021 | |
1.6.0 | 394 | 8/22/2021 | |
1.5.2 | 386 | 4/24/2021 | |
1.5.1 | 418 | 3/8/2021 | |
1.5.0 | 363 | 2/14/2021 | |
1.4.2 | 381 | 2/9/2021 | |
1.4.1 | 394 | 2/9/2021 | |
1.4.0 | 383 | 2/2/2021 | |
1.3.0 | 467 | 12/8/2020 | |
1.2.0 | 436 | 12/8/2020 | |
1.1.0 | 496 | 11/15/2020 | |
1.0.1 | 845 | 11/14/2020 | |
1.0.0 | 875 | 11/14/2020 |