Argo e4b2060651 !848 feat(#I2BUWV): renew Upload component
* Merge branch 'dev' into dev-uploadfile-js-8
* docs: Upload 组件增加 new 标签
* docs: 提交 upload 组件
* feat: 重写 Upload 组件
* docs: 更新资源文件
* fix: 修复 drag 脚本错误
* docs: 更新文档
* chore: 更新脚本
* refactor: 更新 Upload 组件准备重写
* Merge branch 'dev-global' into dev-uploadfile-js-8
* chore: config sdk version to 5.0.101
* Merge branch 'dev' into dev-uploadfile-js-8
* feat: 增加 FileValidationAttribute 标签
* docs: 增加注释
* refactor: 移动 format 跟 guid 到扩展类中
* refactor: 精简项目文件
* refactor: 精简项目文件增加导出脚本
* refactor: 移动导出脚本到 TableExport 工程中
* refactor: 移动 culture 脚本到 share 工程 common 中
* refactor: 集成扩展脚本
* refactor: 拆分扩展脚本
* refactor: 集成 drag 脚本
* refactor: 拆分 drag 脚本
* refactor: 集成 tab 脚本
* refactor: 拆分 tab 脚本
* refactor: 集成 longbow.upload 脚本
* refactor: 拆分 longbow.upload 脚本文件
* refactor: 集成 longbow.captcha 脚本
* refactor: 拆分 captcha 脚本到独立文件中
2021-01-05 00:21:13 +08:00
2020-12-22 18:12:33 +08:00
2020-03-02 17:00:55 +08:00
2020-03-02 17:00:55 +08:00
2020-03-02 17:00:55 +08:00
2020-12-22 00:27:05 +08:00
2020-11-19 10:14:35 +08:00

Bootstrap Blazor Component

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

Github build Nuget Nuget Github Repo Size Commit Date


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.
  • 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

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.

Description
Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
Readme Apache-2.0 156 MiB
Languages
C# 89.1%
JavaScript 5.2%
SCSS 3.8%
CSS 1.9%