Giter Site home page Giter Site logo

brecons / bootstrap-tag-helper Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 11.0 7.09 MB

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

License: Apache License 2.0

C# 58.63% CSS 0.26% JavaScript 0.01% HTML 41.10%
asp-net-core bocons bootstrap bootstrap4 brecons taghelper

bootstrap-tag-helper's People

Contributors

brecons avatar bremussolutions avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bootstrap-tag-helper's Issues

Wrong "for" attribute generated in label tags

Hi, I have a model with this fields

    public class EppEquipoViewModel
    {
        public int? Id { get; set; }
        [DisplayName("Descripcion")]
        public string Descripcion { get; set; }
...

and this is my template

<form method="post" autocomplete="off" bc-validation="true">
    <form-group>
        <input asp-for="Descripcion" type="text" bc-help="Ingrese el nombre del equipo" bc-size="Small" bc-required="true"/>
    </form-group>
</form>

and this is what i get, i looks pretty good, but there is a problem with the generated html

image

the generated for attribute in the label tag doesn't match with the input id, and this is a bad accessibility practice, this only happens on inputs that use the asp-for tag helper.
image

Forms using several views do not work

Your tag helpers use TagHelperContext to store things like the form context. However, using the TagHelperContext means that if you have a layout with the

tag with the @RenderBody inside and the content of the form in a View that use that layout, the form won't work.

Unfortunately this is a very common scenario. The only way to change it is to use ViewContext.ViewData instead of the TagHelperContext for tag helper communication. You can see more information about it in this SO thread

Anchor Tag Helpers in navbar-link?

There are any plan to implements built-in anchor tag helpers in <navbar-link>

Example for razor pages:
<navbar-link asp-page="/">Index</navbar-link>

Example for MVC:
<navbar-link asp-controller="Home" asp-action="Index">Index</navbar-link>

Regards

New log for Tag Helper

I wanted to contribute to Tag Helper. I designed a logo for it. If you like it, I'll send you files and pr.

Please tell me in particular if you have something you want.

taghelper

NuGet packages not supporting current .NET Core version

Tried to install the NuGet package into a .NET Core 3.1 project. NuGet tried to load several 2.x version packages, which would have likely broken the app. It looks like the dependency list needs to be updated for the latest version of .NET Core.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.