Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctrl-alt-d/BlazorServerTree
A simple lazy load UI sample to deal with hierarchical data
https://github.com/ctrl-alt-d/BlazorServerTree
Last synced: 2 days ago
JSON representation
A simple lazy load UI sample to deal with hierarchical data
- Host: GitHub
- URL: https://github.com/ctrl-alt-d/BlazorServerTree
- Owner: ctrl-alt-d
- License: agpl-3.0
- Created: 2018-08-09T16:07:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T06:27:44.000Z (almost 4 years ago)
- Last Synced: 2024-04-16T01:57:44.410Z (3 months ago)
- Language: HTML
- Size: 10.3 MB
- Stars: 35
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- AdrienTorris_awesome-blazor - BlazorServerTree - ![GitHub stars](https://img.shields.io/github/stars/ctrl-alt-d/BlazorServerTree?style=flat-square&cacheSeconds=604800) ![GitHub stars](https://img.shields.io/github/last-commit/ctrl-alt-d/BlazorServerTree?style=flat-square&cacheSeconds=86000) A simple Server-Side Blazor sample app to deal with hierarchical data. (Sample Projects / Others)
- blazor-awesome - BlazorServerTree - ![GitHub stars](https://img.shields.io/github/stars/ctrl-alt-d/BlazorServerTree?style=flat-square&cacheSeconds=604800) ![GitHub stars](https://img.shields.io/github/last-commit/ctrl-alt-d/BlazorServerTree?style=flat-square&cacheSeconds=86000) A simple Server-Side Blazor sample app to deal with hierarchical data. (Sample Projects / Others)
README
# BlazorServerTree
A simple Server-Side Blazor sample app to deal with hierarchical data.
The project has a fake data layer service that allow running it without database backend configuration.
The basic functionality is ready:
* Unexpand nodes and expand nodes with Lazy load.
* Select and unselect a node.### Screenshot ( because all us love screenshots ):
![screenshot](./screenshots/screenshot_smallv2.gif)
### Show me the code
```
@functions {
UITree uiTree = new UITree();
private async Task OnExpand(int Id)
{
System.Console.WriteLine("Expanded " + Id);
return await Task.FromResult(true);
}```
### Can I use `UITreeComponent` on my project?
Use it as your risk. Steps:
* Download the project.
* Add a reference to it from your own project.
* Add the following line in your `_ViewImports.cshtml`: `@addTagHelper *, BlazorTreeControl`
* Please, PR your improvements and Issue for comments.Don't hesitate to contact me for further information :)
### Credits
* [Dani Herrera](https://github.com/ctrl-alt-d)
* [Mikael Ferland](https://github.com/MikaelFerland)