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

https://github.com/blazorplus/blazorplus

ASP.NET Core Blazor Server Side Sample,Session,Navigation,Modal Dialog,Controls,Components,File Upload
https://github.com/blazorplus/blazorplus

blazor blazor-component blazor-components blazor-server

Last synced: about 1 month ago
JSON representation

ASP.NET Core Blazor Server Side Sample,Session,Navigation,Modal Dialog,Controls,Components,File Upload

Awesome Lists containing this project

README

        

# BlazorPlus

BlazorPlus is a component library that helps you to write code more directly and easily,
Single dll , light-weight (about 260KB dll) ,
Blazor Server/Client/WASM Side Session,Modal Dialog,Controls,File Upload,TreeView

![Screenshot](https://github.com/BlazorPlus/BlazorPlus/raw/master/images/s002.png)

## Samples

live demo : http://demo.blazorplus.com/

demo code : https://github.com/BlazorPlus/BlazorPlusDemo

BlazorLinuxAdmin : https://github.com/BlazorPlus/BlazorLinuxAdmin

## Nuget name : BlazorPlus https://www.nuget.org/packages/BlazorPlus/

## Installation server-side :

1 - Startup.cs
```
in ConfigureServices :
services.AddHttpContextAccessor();
services.AddScoped();
in app.UseEndpoints : (before Fallback)
endpoints.Map("/_blazorplus_handler", BlazorPlus.BlazorSession.ProcessRequestAsync);
```

2 - _Host.cshtml
```
in :

```

3 - _Imports.razor
```
@using BlazorPlus
```

4 - App.razor
```
at the front:

```

Now test it in Index.razor:
```
Hello World
@code{
void ShowHelloWorld()
{
BlazorSession.Current.Alert("Greeting", "Hello World");
}
}
```

## Installation WebAssembly

1 - Program.cs
```
BlazorPlus.BlazorSession.InitForWasm(builder.Services);
builder.Services.AddScoped();
```

2 - _Imports.razor
```
@using BlazorPlus
```

3 - MainLayout.razor
```
at the front:
@inject BlazorSession bses

```

Now test it in Index.razor:
```
Hello World
@code{
void ShowHelloWorld()
{
BlazorSession.Current.Alert("Greeting", "Hello World");
}
}
```