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
- Host: GitHub
- URL: https://github.com/blazorplus/blazorplus
- Owner: BlazorPlus
- License: mit
- Created: 2020-03-28T01:49:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T03:25:43.000Z (almost 5 years ago)
- Last Synced: 2025-04-14T04:19:49.627Z (about 1 month ago)
- Topics: blazor, blazor-component, blazor-components, blazor-server
- Language: HTML
- Homepage: http://blazorplus.com/
- Size: 1.3 MB
- Stars: 18
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
## 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");
}
}
```