Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SamProf/BlazorVirtualScrolling
Blazor components for efficiently rendering large lists and data using virtual scrolling
https://github.com/SamProf/BlazorVirtualScrolling
blazor blazor-client blazor-component blazor-server virtualscroll
Last synced: 3 months ago
JSON representation
Blazor components for efficiently rendering large lists and data using virtual scrolling
- Host: GitHub
- URL: https://github.com/SamProf/BlazorVirtualScrolling
- Owner: SamProf
- License: mit
- Created: 2019-05-01T20:45:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-13T13:39:35.000Z (about 5 years ago)
- Last Synced: 2024-06-29T04:36:05.454Z (5 months ago)
- Topics: blazor, blazor-client, blazor-component, blazor-server, virtualscroll
- Language: HTML
- Homepage: https://samprof.github.io/BlazorVirtualScrolling/
- Size: 3.4 MB
- Stars: 57
- Watchers: 5
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlazorVirtualScrolling
## Material Design components for Blazor and Razor Components
[![NuGet](https://img.shields.io/nuget/v/BlazorVirtualScrolling.svg)](https://www.nuget.org/packages/BlazorVirtualScrolling/)
[![Gitter](https://badges.gitter.im/MatBlazor/community.svg)](https://gitter.im/MatBlazor/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![GitHub Stars](https://img.shields.io/github/stars/SamProf/BlazorVirtualScrolling.svg)](https://github.com/SamProf/BlazorVirtualScrolling/stargazers)
[![GitHub Issues](https://img.shields.io/github/issues/SamProf/BlazorVirtualScrolling.svg)](https://github.com/SamProf/BlazorVirtualScrolling/issues)
[![Live Demo](https://img.shields.io/badge/demo-online-green.svg)](https://samprof.github.io/BlazorVirtualScrolling/)
[![MIT](https://img.shields.io/github/license/SamProf/BlazorVirtualScrolling.svg)](LICENSE)
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9XT68N2VKWTPE&source=url)The `VirtualScroll` displays large lists of elements performantly by only rendering the items that fit on-screen. Loading hundreds of elements can be slow in any browser; virtual scrolling enables a performant way to simulate all items being rendered by making the height of the container element the same as the height of total number of elements to be rendered, and then only rendering the items in view.
## Demo and Documentation
- [Documentation and demo](https://samprof.github.io/BlazorVirtualScrolling/)## Prerequisites
Don't know what Blazor is? Read [here](https://github.com/aspnet/Blazor)
Complete all Blazor dependencies.
- .NET Core 3.0 Preview 4 SDK (3.0.0-preview4-19216-03)
- Visual Studio 2019 Preview 4 with the ASP.NET and web development workload selected.
- The latest Blazor extension from the Visual Studio Marketplace.
- The Blazor templates on the command-line: dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview4-19216-03## Installation
Latest version in here: [![NuGet](https://img.shields.io/nuget/v/BlazorVirtualScrolling.svg)](https://www.nuget.org/packages/BlazorVirtualScrolling/)
To Install
```
Install-Package BlazorVirtualScrolling
```
or
```
dotnet add package BlazorVirtualScrolling
```## Usage
```html
@using BlazorVirtualScrolling
@context@functions
{
public IEnumerable items = Enumerable.Range(0, 1000000).Select(i => i.ToString()).ToArray();
}
```## BlazorVirtualScrolling components for server-side Blazor (Razor Components)
- Startup.cs
```
app.UseEmbeddedBlazorContent(typeof(BlazorVirtualScrolling.VirtualScroll).Assembly);
```
- _Host.cshtml (head section)
```html
@using EmbeddedBlazorContent...
@Html.EmbeddedBlazorContent()```
## Questions
For *how-to* questions and other non-issues, for now you can use issues or you can use [![Gitter](https://badges.gitter.im/MatBlazor/community.svg)](https://gitter.im/MatBlazor/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge).
## Contributing
We'd greatly appreciate any contribution you make. :)
## License
This project is licensed under the terms of the [MIT license](LICENSE).
## News
### Version 1.0.0
- First version of VirtualScroll component, proof of concept