Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)