BootstrapBlazor3/src/BootstrapBlazor
Argo 15493e04c6 !2842 feat(#I5A71H): add class parameter on collapse item
* chore: bump version 6.6.22
* test: 增加 CollapseItem 单元测试
* feat: CollapseItem 增加自定义样式支持
2022-05-31 07:58:03 +00:00
..
Attributes !2811 refactor(#I58S7N): rename LookUpService to LookupService 2022-05-23 07:18:28 +00:00
Components !2842 feat(#I5A71H): add class parameter on collapse item 2022-05-31 07:58:03 +00:00
Dynamic !2456 fix(#I4V5MJ): invisibleColumns parameter not work in DataTableDynamicContext 2022-02-24 10:03:17 +00:00
Enums !2762 feat(#I56GPF): add AutoRecoginzerElapsedMilliseconds option 2022-05-09 05:47:17 +00:00
Extensions !2841 doc(#I5A6AQ): update repo link 2022-05-31 06:57:55 +00:00
Locales !2791 test(#I581BH): add unit test for table toolbar 2022-05-18 05:41:29 +00:00
Localization/Json !2719 feat(#I5544K): JsonStringLocalizerFactory support hot reload when BootstrapBlazorOptions changed 2022-04-28 02:56:07 +00:00
Misc !2816 feat(#I5948R): table support manual query data in Virtualizer mode 2022-05-25 03:15:46 +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 !2811 refactor(#I58S7N): rename LookUpService to LookupService 2022-05-23 07:18:28 +00:00
Utils !2811 refactor(#I58S7N): rename LookUpService to LookupService 2022-05-23 07:18:28 +00:00
Validators !2719 feat(#I5544K): JsonStringLocalizerFactory support hot reload when BootstrapBlazorOptions changed 2022-04-28 02:56:07 +00:00
wwwroot !2839 feat(#I5A1Z0): update divider style 2022-05-30 12:12:15 +00:00
_Imports.razor !2510 feat(#I4X9JC): add overflow datetime check 2022-03-10 11:53:48 +00:00
BootstrapBlazor.csproj !2842 feat(#I5A71H): add class parameter on collapse item 2022-05-31 07:58:03 +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 !2841 doc(#I5A6AQ): update repo link 2022-05-31 06:57:55 +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.