Go to file
Argo 3ebfeb7bfc !2737 test(#I55K9H): improve unit test for Table component
* test: 增加 SearchText 单元测试
* test: 增加 ShowSearchButton 单元测试
* test: 增加 ShowResetButton 单元测试
* test: 增加 ShowSearchTooltip 单元测试
* test: 增加 CollapsedTopSearch 单元测试
* doc: 更新参数说明
* test: 增加断言
* test: 增加固定列单元测试
* fix: 修复判断是否固定尾部逻辑
* test: 增加 ShowCheckboxText 单元测试
* test: 增加列宽单元测试
* test: 增加列宽调整单元测试
* test: 增加这行单元测试
* test: 更新单元测试增加代码覆盖率
* doc: 增加注释
* test: 增加排序单元测试
* test: 增加虚拟滚动排序单元测试
* refactor: 精简代码
* fix: 修复失败单元测试
* fix: 修复可能失败的单元测试
* chore: 增加内部类排除代码覆盖率统计
* test: 精简代码
* feat: 增加 IDispose 接口
* test: 扩展确认按钮单元测试
* test: 精简代码
* test: 增加额外扩展按钮单元测试
* test: 增加代码覆盖率
* test: 更新代码
* test: 增加扩展按钮点击事件
* test: 增加 TableCellButton 单元测试
* test: 更新单元测试防止执行失败
2022-05-02 04:41:47 +00:00
.gitee !2620 feat(#I51EOA): add Speech component 2022-04-06 17:11:10 +00:00
.github !2678 chore(#I53B6S): update script for github pack action 2022-04-18 09:08:23 +00:00
dist !447 doc(#I1T8YQ): 更新 wasm 发布 404 文件 2020-08-30 01:51:55 +08:00
scripts !2469 doc(#I4VQAV): update document for table search feature 2022-03-01 05:30:24 +00:00
src !2737 test(#I55K9H): improve unit test for Table component 2022-05-02 04:41:47 +00:00
test !2737 test(#I55K9H): improve unit test for Table component 2022-05-02 04:41:47 +00:00
.dockerignore chore: add ignore rules 2021-01-12 12:55:16 +08:00
.editorconfig !2327 refactor(#I4R9DA): update popover.js javascript 2022-01-18 05:05:27 +00:00
.filenesting.json !2671 feat(#I537X5): remove zxing.min.js from bundle.min.js 2022-04-18 04:48:38 +00:00
.gitattributes chore: add ignore rules 2021-01-12 12:55:16 +08:00
.gitignore !1849 fix(#I48PF6): resolve not shown the preview Image on CardUpload component 2021-09-12 03:35:10 +00:00
.issuetracker chore: update fork tracker 2021-01-12 13:10:40 +08:00
.tfignore chore: add ignore rules 2021-01-12 12:55:16 +08:00
appveyor.yml chore: update Nuget key 2021-01-12 12:45:21 +08:00
BootstrapBlazor.sln !2711 revert(#I54UQP): remove test project from solution 2022-04-26 10:58:25 +00:00
BootstrapBlazor.slnf !2130 test(#I4JTGK): localization unit test into localization test project 2021-11-25 08:28:29 +00:00
CHANGELOG.zh-CN.md docs: add link for changelog 5.0.22 2021-03-24 10:37:31 +08:00
Directory.Build.props !2379 chore(#I4SLE2): add global using for solution 2022-02-03 03:35:30 +00:00
LICENSE chore: update copyright author 2021-01-12 12:47:08 +08:00
NuGet.Config !1691 feat(#I44F4H): EditForm/InCell mode support Readonly parameter on Table component 2021-08-08 09:35:53 +00:00
README.md !2173 test(#I4L4IK): add unit test for Print 2021-12-05 01:55:40 +00:00
README.zh-CN.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 Nuget Nuget Repo Size Commit Date Github build codecov

English | 中文


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

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.

Supported browsers

chrome firefox edge ie Safari Andriod oper

Mobile devices

ios Andriod windows

Chrome Firefox Safari Android Browser & WebView Microsoft Edge
iOS Supported Supported Supported N/A Supported
Android Supported Supported N/A Android v5.0+ supported Supported
Windows 10 Mobile N/A N/A N/A N/A Supported

Desktop browsers

macOS linux windows

Chrome Firefox Internet Explorer Microsoft Edge Opera Safari
Mac Supported Supported N/A N/A Supported Supported
Linux Supported Supported N/A N/A N/A N/A
Windows Supported Supported Supported, IE11+ Supported Supported Not supported

Screenshots

Toggle Toast Upload Upload2 Bar Pei Doughnut

Contribution

  1. Fork
  2. Create Feat_xxx branch
  3. Commit
  4. Create Pull Request

Donate

If this project is helpful to you, please scan the QR code below for a cup of coffee.