Skip to content

A free Tag Helper Library for Bootstrap (Version 4.x) - the world's most popular mobile-first and responsive front-end framework.

License

Notifications You must be signed in to change notification settings

brecons/bootstrap-tag-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootstrap Tag Helper (Bocons)

About Bocons

Bocons is a free tag helper library for Bootstrap (Version 4) - the world's most popular mobile-first and responsive front-end framework. Bocons is one of a Brecons product and provides components and controls to use in a ASP.NET Core web application.

Compatibility and Requirements

Target Framework Version Target Framework Moniker (TFM) Support
.NET Standard 2.0 netstandard2.0 Supported
.NET Standard 1.6 netstandard1.6 Not Supported
.NET Core Application 2.0 netcoreapp2.0 Supported
.NET Core Application 1.0 netcoreapp1.0 Not Supported

Getting Started

The Bocons Tag Helper Library is published as a package in NuGet. Only three essential steps are necessary for installation.

Find the full Getting Started Guide here.

Install NuGet Packages

Use the Package Manage Console of Visual Studio to install Bocons:

PM> Install-Package BSolutions.Bocons

Add Service Configuration

Register inside the ConfigureServices method of Startup.cs a singleton for the IActionContextAccessor and import the namespace Microsoft.AspNetCore.Mvc.Infrastructure.

using Microsoft.AspNetCore.Mvc.Infrastructure

public void ConfigureServices(IServiceCollection services)
{
    // Add a singleton for IActionContextAccessor
    services.AddSingleton<IActionContextAccessor, ActionContextAccessor>();

    services.AddMvc();
}

Modify View Imports

Modify /Views/_ViewImports.cshtml and enable the Bocons Tag Helpers for the web application views:

@using MyCompany.MyApplication
@using MyCompany.MyApplication.Models
@using BSolutions.Bocons.Enumerations
@using BSolutions.Brecons.Core.Enumerations
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, BSolutions.Bocons

Documentation

For complete a Bocons documentation, please visit https://www.brecons.net/Documentation/Bocons

Release Notes

For change logs and release notes, see the online change logs at brecons.net

License Information

This project has been released under the Apache License Version 2.0. This license applies ONLY to the source of this repository and does not extend to any other Brecons distribution or variant.

Copyright 2016 - 2019 Bremus Solutions

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A free Tag Helper Library for Bootstrap (Version 4.x) - the world's most popular mobile-first and responsive front-end framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages