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: 18 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T06:27:44.000Z (over 4 years ago)
- Last Synced: 2024-08-01T15:04:22.204Z (4 months ago)
- Language: HTML
- Size: 10.3 MB
- Stars: 35
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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)