Go to file
Argo Zhang 9b2d9d467a
feat(Table): support export as Pdf (#2550)
* doc: 更新示例文档

* feat: 增加 Pdf 导出方法

* chore: 增加 Csv 相关资源文件

* refactor: 完善 IHtml2Pdf 接口服务

* refactor: 重构 TableExport 导出服务

* feat: 合并导出服务

* feat: 增加 IHtml2Pdf 服务

* feat: 增加 Csv 图标参数

* feat: 增加 ExportCsvDropdownItemText 参数

* feat: 内置导出 Csv 按钮参数

* feat: 移除 Pdf/Excel 服务统一使用 TableExport 服务

* refator: 调整注入服务

* refactor: 更改图标参数名称

* refactor: 增加图标宽度

* refactor: 精简代码

* doc: 更新导出按钮示例

* doc: 重构 Html2Pdf 示例

* feat: 增加 ITableExportPdf 服务

* feat: 增加 PdfSteamAsync 方法

* doc: 重构代码

* feat: 实现项目 Pdf 导出服务

* refactor: 增加 PdfStreamAsync 方法

* feat: 增加 ExportPdfAsync 方法

* chore: 更新图标

* test: 更新单元测试

* chore: 更新字典

* chore: bump version 8.0.6-beta01

* chore: bump version 8.0.2-beta01

* chore: bump version 8.0.1-beta01

* chore: bump version 8.0.2-beta01

* chore: 更新依赖组件包到最新

* refactor: 重构代码消除警告信息

* test: 更新单元测试

* refactor: 精简代码

* test: 更新单元测试
2023-12-11 14:00:29 +08:00
.gitee feat(Scroll): add Width parameter (#1944) 2023-08-16 19:04:32 +08:00
.github feat(BootstrapLabel): add UseInputEvent parameter (#2543) 2023-12-11 00:04:19 +08:00
docs chore: update comment label action and repro document (#399) 2023-01-27 16:36:26 +08:00
localization feat(Table): support export as Pdf (#2550) 2023-12-11 14:00:29 +08:00
scripts doc(Website): use web app template (#2386) 2023-11-17 10:24:58 +08:00
src feat(Table): support export as Pdf (#2550) 2023-12-11 14:00:29 +08:00
test feat(Table): support export as Pdf (#2550) 2023-12-11 14:00:29 +08:00
.dockerignore chore: add ignore rules 2021-01-12 12:55:16 +08:00
.editorconfig doc(SlideButton): update sampe code for SlideButton (#2505) 2023-12-07 12:37:07 +08: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 chore(bundle): ignore bundle files (#2377) 2023-11-16 14:13:27 +08:00
.issuetracker !2841 doc(#I5A6AQ): update repo link 2022-05-31 06:57:55 +00:00
.tfignore chore: add ignore rules 2021-01-12 12:55:16 +08:00
BootstrapBlazor.sln feat(AzureTranslator): add AzureTranslator service (#2519) 2023-12-09 14:44:21 +08:00
BootstrapBlazor.slnf doc(Website): use web app template (#2386) 2023-11-17 10:24:58 +08:00
CHANGELOG.md doc(ChangeLog): update changelog doc (#2272) 2023-10-15 22:51:53 +08:00
CHANGELOG.zh-CN.md doc(ChangeLog): update changelog doc (#2272) 2023-10-15 22:51:53 +08:00
CODE_OF_CONDUCT.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 2023-07-14 21:19:48 +08:00
CONTRIBUTING.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 2023-07-14 21:19:48 +08:00
Directory.Build.props feat(FontAweseom): upgrade to 6.4.2 (#2098) 2023-09-08 10:22:09 +08:00
exclusion.dic feat(Table): support export as Pdf (#2550) 2023-12-11 14:00:29 +08:00
Framework.props chore(NET8): support net8.0 (#2371) 2023-11-15 10:57:18 +08:00
LICENSE chore: update copyright author 2021-01-12 12:47:08 +08:00
NuGet.Config chore(Nuget): remove nuget.blazor.zone source (#2353) 2023-11-12 12:04:20 +08:00
README.md chore(test): update Test (#2111) 2023-09-11 23:32:39 +08:00
README.zh-CN.md feat(LookupFilter): add IsShowSearch parameter (#2409) 2023-11-22 14:36:35 +08:00
SECURITY.md doc(conduct): add code-conduct/security/contribute markdown doc (#1556) 2023-07-14 21:19:48 +08:00

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.