PSC.Blazor.Components.ScrollTabs
6.0.0
See the version list below for details.
dotnet add package PSC.Blazor.Components.ScrollTabs --version 6.0.0
NuGet\Install-Package PSC.Blazor.Components.ScrollTabs -Version 6.0.0
<PackageReference Include="PSC.Blazor.Components.ScrollTabs" Version="6.0.0" />
paket add PSC.Blazor.Components.ScrollTabs --version 6.0.0
#r "nuget: PSC.Blazor.Components.ScrollTabs, 6.0.0"
// Install PSC.Blazor.Components.ScrollTabs as a Cake Addin #addin nuget:?package=PSC.Blazor.Components.ScrollTabs&version=6.0.0 // Install PSC.Blazor.Components.ScrollTabs as a Cake Tool #tool nuget:?package=PSC.Blazor.Components.ScrollTabs&version=6.0.0
ScrollTabs for Blazor
Automatically adjusts to detect whether scrolling is needed, ideal for responsive interfaces. One of the greatest features for ScrollTabs is that you can have different right-and-left side styling depending on if scrolling is required. Here you can see that there are rounded corners for the right and left sides when it is not wide enough to scroll, however when scrolling there are right and left arrows accordingly.
Add the ScrollTabs
First, if your project is a Blazor WebAssemble, open the index.html and add the following lines in the header of the page
<link href="_content/PSC.Blazor.Components.ScrollTabs/css/scrolltabs.css" rel="stylesheet" />
Then, before the BODY
tag closed, add the following lines:
<script src="_content/PSC.Blazor.Components.ScrollTabs/js/jquery.mousewheel.js"></script>
<script src="_content/PSC.Blazor.Components.ScrollTabs/js/jquery.scrolltabs.js"></script>
<script src="_content/PSC.Blazor.Components.ScrollTabs/js/scrolltabs.js"></script>
This component requires
jquery
andbootstrap
. You can install those libraries for Visual Studio > Client-side library.
Finally, in the _Imports.razor
add
@using PSC.Blazor.Components.ScrollTabs
Use the Scrolltabs
In your Razor
page, you can call the component like that
<ScrollTabs TabId="TabId1" OnTabChanged="OnTabChanged" Theme="Theme.Dark">
<Tab Text="Tab 1" Value="Tab1">
<h2>Content Tab 1</h2>
<p>
This is the content for the Tab 1. It is enabled.
</p>
</Tab>
<Tab Text="Tab 2" Value="Tab2">
<h2>Content Tab 2</h2>
<p>
This is the content for the Tab 2. It is enabled.
</p>
</Tab>
</ScrollTabs>
@code {
public async Task OnTabChanged(Tab tab)
{
Console.WriteLine($"Tab value: {tab.Value} - Tab text: {tab.Text}");
}
}
Themes
Embedded in the components, there are 3 theme options:
- Light
- Dark
- None
You can use None
to use your custom implementation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.