PSC.Blazor.Components.ScrollTabs
6.0.1
See the version list below for details.
dotnet add package PSC.Blazor.Components.ScrollTabs --version 6.0.1
NuGet\Install-Package PSC.Blazor.Components.ScrollTabs -Version 6.0.1
<PackageReference Include="PSC.Blazor.Components.ScrollTabs" Version="6.0.1" />
paket add PSC.Blazor.Components.ScrollTabs --version 6.0.1
#r "nuget: PSC.Blazor.Components.ScrollTabs, 6.0.1"
// Install PSC.Blazor.Components.ScrollTabs as a Cake Addin #addin nuget:?package=PSC.Blazor.Components.ScrollTabs&version=6.0.1 // Install PSC.Blazor.Components.ScrollTabs as a Cake Tool #tool nuget:?package=PSC.Blazor.Components.ScrollTabs&version=6.0.1
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.
Other Blazor components
Component name | Forum | Description |
---|---|---|
DataTable for Blazor | Forum | DataTable component for Blazor WebAssembly and Blazor Server |
Markdown editor for Blazor | Forum | This is a Markdown Editor for use in Blazor. It contains a live preview as well as an embeded help guide for users. |
Browser Detect for Blazor | Forum | Browser detect for Blazor WebAssembly and Blazor Server |
CodeSnipper for Blazor | Forum | Add code snippet in your Blazor pages for 196 programming languages with 243 styles |
Copy To Clipboard | Forum | Add a button to copy text in the clipbord |
SVG Icons and flags for Blazor | Forum | Library with a lot of SVG icons and SVG flags to use in your Razor pages |
Modal dialog for Blazor | Forum | Simple Modal Dialog for Blazor WebAssembly |
PSC.Extensions | Forum | A lot of functions for .NET5 in a NuGet package that you can download for free. We collected in this package functions for everyday work to help you with claim, strings, enums, date and time, expressions... |
Quill for Blazor | Forum | Quill Component is a custom reusable control that allows us to easily consume Quill and place multiple instances of it on a single page in our Blazor application |
Segment for Blazor | Forum | This is a Segment component for Blazor Web Assembly and Blazor Server |
Tabs for Blazor | Forum | This is a Tabs component for Blazor Web Assembly and Blazor Server |
WorldMap for Blazor | Forum | Show world maps with your data |
More examples and documentation
- Write a reusable Blazor component
- Getting Started With C# And Blazor
- Setting Up A Blazor WebAssembly Application
- Working With Blazor Component Model
- Secure Blazor WebAssembly With IdentityServer4
- Blazor Using HttpClient With Authentication
- InputSelect component for enumerations in Blazor
- Use LocalStorage with Blazor WebAssembly
- Modal Dialog component for Blazor
- Create Tooltip component for Blazor
- Consume ASP.NET Core Razor components from Razor class libraries | Microsoft Docs
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.