Bootstrap 样式的 Blazor UI 组件库,适配移动端支持各种主流浏览器,适配 ABP,同时支持 NET5/NET6/NET7 交流群 795206915 或者 675147445
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Argo Zhang e1ac26b52d
refactor(DockViewV2): split script into modules (#3665)
* refactor: 精简代码

* refactor: 拆分脚本

* refactor: 拆分图标获取逻辑

* refactor: 移除图标初始化逻辑

* refactor: 精简代码

* refactor: 增加组扩展方法

* refactor: 增加锁定按钮事件

* refactor: 重构 Group 扩展图标方法

* refactor: 移除不使用的代码

* refactor: 精简代码

* refactor: 代码格式化

* refactor: 修改groupId方法

* refactor: 修改float方法

* refactor: 更新配置加载逻辑

* refactor: 更新 template 逻辑

* refactor: 重构构建 dockview 方法

* refactor: 修复初始化方法

* refactor: 重构 cerateDockview 方法

* refactor: 修复重置group按钮方法后功能异常

* refactor: 精简获取配置逻辑

* refactor: 增加 loadPanelsFromLocalstorage 方法

* refactor: 修复逻辑错误

* refactor: 重构代码

* refactor: 调整结构

* refactor: 更新文件名

* refactor: 重命名方法

* refactor: 增加 Group 标签监控逻辑

* refactor: 移动 Panel 相关扩展方法

* refactor: 移动 fix 扩展方法

* refactor: 拆分 config 扩展方法

* refactor: 程序调通

* refactor: 增加方法导入

* refactor: 增加 onRemovePanel 方法

---------

Co-authored-by: zhaijunlei <276318515@qq.com>
1 week ago
.gitee chore(Gitee): update Issue template (#2990) 4 months ago
.github refactor(TagHelper): add IVersionService implement (#3282) 2 months ago
docs chore: update comment label action and repro document (#399) 1 year ago
localization doc(Localization): improve Spanish translation resources (#3418) 2 months ago
scripts doc(Reboot): update Reboot notification (#3084) 3 months ago
src refactor(DockViewV2): split script into modules (#3665) 1 week ago
test doc(Locales): update EnumEducation typo (#3655) 2 weeks ago
.dockerignore chore: add ignore rules 3 years ago
.editorconfig feat(Calendar): add OnValueChanged callback (#2780) 6 months ago
.filenesting.json !2671 feat(#I537X5): remove zxing.min.js from bundle.min.js 2 years ago
.gitattributes doc(Web): use css variable (#3284) 2 months ago
.gitignore doc(Theme): add dark theme for web site (#2630) 6 months ago
.issuetracker feat(Dock): add HasHeaders parameter (#3315) 2 months ago
.tfignore chore: add ignore rules 3 years ago
BootstrapBlazor.sln feat(DockView): add new dockview component (#3533) 3 weeks ago
BootstrapBlazor.slnf doc(Website): use web app template (#2386) 7 months ago
CHANGELOG.md doc(ChangeLog): update changelog doc (#2272) 8 months ago
CHANGELOG.zh-CN.md doc(ChangeLog): update changelog doc (#2272) 8 months ago
CODE_OF_CONDUCT.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 12 months ago
CONTRIBUTING.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 12 months ago
Directory.Build.props feat(TagHelper): add BootstrapBlazor.TagHelper package (#3278) 2 months ago
Framework.props chore(NET8): support net8.0 (#2371) 7 months ago
LICENSE chore: update copyright author 3 years ago
NuGet.Config chore(Nuget): remove nuget.blazor.zone source (#2353) 8 months ago
README.md doc(Table): update table documentation (#3374) 2 months ago
README.zh-CN.md doc(Table): update table documentation (#3374) 2 months ago
SECURITY.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 12 months ago
exclusion.dic doc(Ad): redesign wwads component (#3651) 2 weeks ago

README.md

Bootstrap Blazor Component

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

Security Status

oscs 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 install 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.