BootstrapBlazor3/src/BootstrapBlazor
Argo 0779c5f486 !2750 test(#I55NYC): add unit test for pagination of Table
* test: 增加翻页操作单元测试
* refactor: 增加行号资源文件
2022-05-04 08:02:14 +00:00
..
Attributes !2709 feat(#I53ZDH ): support nullable bool data type on table component 2022-04-26 09:17:57 +00:00
Components !2750 test(#I55NYC): add unit test for pagination of Table 2022-05-04 08:02:14 +00:00
Dynamic !2456 fix(#I4V5MJ): invisibleColumns parameter not work in DataTableDynamicContext 2022-02-24 10:03:17 +00:00
Enums !2738 fix(#I55J40): datatime view mode incorrect when click datetime cell to switch the view mode 2022-05-02 07:05:09 +00:00
Extensions !2738 fix(#I55J40): datatime view mode incorrect when click datetime cell to switch the view mode 2022-05-02 07:05:09 +00:00
Locales !2750 test(#I55NYC): add unit test for pagination of Table 2022-05-04 08:02:14 +00:00
Localization/Json !2719 feat(#I5544K): JsonStringLocalizerFactory support hot reload when BootstrapBlazorOptions changed 2022-04-28 02:56:07 +00:00
Misc !2742 test(#I55L6P): improve table code coverage 2022-05-02 17:09:38 +00:00
Options !2706 feat(#I54J8T): options support hot reload 2022-04-25 07:16:46 +00:00
Router !2388 test(#I4SLZY): add unit test for Tab component 2022-02-04 17:17:27 +00:00
Services !2712 feat(#I54V9B): support null value of Culture system like mac centos ubuntu 2022-04-26 15:03:05 +00:00
Utils !2709 feat(#I53ZDH ): support nullable bool data type on table component 2022-04-26 09:17:57 +00:00
Validators !2719 feat(#I5544K): JsonStringLocalizerFactory support hot reload when BootstrapBlazorOptions changed 2022-04-28 02:56:07 +00:00
wwwroot !2748 feat(#I55NIO): add AutoReconnect parameter on ReconnectorOutlet component 2022-05-04 04:58:49 +00:00
_Imports.razor !2510 feat(#I4X9JC): add overflow datetime check 2022-03-10 11:53:48 +00:00
BootstrapBlazor.csproj !2749 fix(#I55NSB): revert dispose code from TableExtensionButton class 2022-05-04 06:47:37 +00:00
bundleconfig.json !2680 chore(#I53DOY): udpate package rule reduce nuget package size 2022-04-18 17:06:16 +00:00
Directory.Build.props !2380 chore(#I4SLG7): add frameworks props configuration file 2022-02-03 06:48:38 +00:00
logo.png !2723 doc(#I555PR): update logo for nuget package and website 2022-04-28 07:22:18 +00:00
readme.md !2684 doc(#I53GGD): update readme markdown file 2022-04-19 05:35:28 +00:00

Bootstrap Blazor Component

A set of enterprise-class UI components based on Bootstrap and Blazor.

License Github build Repo Size Commit Date codecov


Features

  • Enterprise-class UI designed for web applications.
  • A set of high-quality Blazor components out of the box.
  • Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
  • Supports Progressive Web Applications (PWA).
  • Build with C#, a multi-paradigm static language for an efficient development experience.
  • .NET Standard 2.1 based, with direct reference to the rich .NET ecosystem.
  • Supports NET5. (Server-Side, WASM)
  • Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.

Online Examples

website website

Installation Guide

git clone https://github.com/dotnetcore/BootstrapBlazor.git
cd BootstrapBlazor/src/BootstrapBlazor.Server
dotnet run

Create a new project from the dotnet new template

  1. Install the template

dotnet new -i Bootstrap.Blazor.Templates::*

  1. Create the Boilerplate project with the template

dotnet new bbapp

Install Bootstrap Blazor Project Template

  1. Download Project Template

Microsoft Market link

  1. Double Click BootstrapBlazor.UITemplate.vsix

Import Bootstrap Blazor into an existing project

  1. Go to the project folder of the application and install the Nuget package reference

dotnet add package BootstrapBlazor

  1. Add the stylesheet javascripts file to your main index file - Pages/_Host.cshtml (Server) or wwwroot/index.html (WebAssembly)

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    . . .
    <link rel="stylesheet" href="_content/BootstrapBlazor/css/bootstrap.blazor.bundle.min.css">
</head>
<body>
    . . .
    <script src="_framework/blazor.server.js"></script>
    <script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>
</body>
</html>
  1. Open the ~/Startup.cs file in the and register the Bootstrap Blazor service:

C#

namespace BootstrapBlazorAppName
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            //more code may be present here
            services.AddBootstrapBlazor();
        }

        //more code may be present here
    }
}

Visual Studio Integration

To create a new Bootstrap Blazor UI for Blazor application, use the Create New Project Wizard. The wizard detects all installed versions of Bootstrap Blazor for Blazor and lists them in the Version combobox—this enables you to start your project with the desired version. You can also get the latest version to make sure you are up to date.

  1. Get the Wizard

To use the Create New Project Wizard, install the Bootstrap Blazor UI for Blazor Visual Studio Extensions. You can get it from the:

  • Visual Studio Marketplace (for Windows)
  1. Start the Wizard

To start the wizard, use either of the following approaches

Using the Project menu:

  • Click File > New > Project.
  • Find and click the C# Blazor Application option (you can use the search, or filter by Blazor templates).
  • Follow the wizard.