{"id":22801105,"url":"https://github.com/iowacomputergurus/aspnetcore.utilities.bootstraptaghelpers","last_synced_at":"2025-04-19T18:23:37.591Z","repository":{"id":41309589,"uuid":"475098360","full_name":"IowaComputerGurus/aspnetcore.utilities.bootstraptaghelpers","owner":"IowaComputerGurus","description":"A collection of Tag Helpers for working with Bootstrap","archived":false,"fork":false,"pushed_at":"2023-09-11T17:36:09.000Z","size":1106,"stargazers_count":13,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-11-12T18:19:53.115Z","etag":null,"topics":["aspnetcore","hacktoberfest","taghelpers"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IowaComputerGurus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-28T17:00:09.000Z","updated_at":"2024-11-07T09:38:08.000Z","dependencies_parsed_at":"2023-02-16T09:46:39.753Z","dependency_job_id":null,"html_url":"https://github.com/IowaComputerGurus/aspnetcore.utilities.bootstraptaghelpers","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Faspnetcore.utilities.bootstraptaghelpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Faspnetcore.utilities.bootstraptaghelpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Faspnetcore.utilities.bootstraptaghelpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Faspnetcore.utilities.bootstraptaghelpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IowaComputerGurus","download_url":"https://codeload.github.com/IowaComputerGurus/aspnetcore.utilities.bootstraptaghelpers/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229352424,"owners_count":18059492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","hacktoberfest","taghelpers"],"created_at":"2024-12-12T08:08:58.838Z","updated_at":"2024-12-12T08:08:59.566Z","avatar_url":"https://github.com/IowaComputerGurus.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AspNetCore Bootstrap Tag Helpers ![](https://img.shields.io/github/license/iowacomputergurus/aspnetcore.utilities.bootstraptaghelpers.svg)\n\nA collection of TagHelpers for ASP.NET Core that make utilizing the Bootstrap 4.x library easier to use for developers.  Designed to reduce code effort substantially\n\n![Build Status](https://github.com/IowaComputerGurus/aspnetcore.utilities.bootstraptaghelpers/actions/workflows/ci-build.yml/badge.svg)\n\n![](https://img.shields.io/nuget/v/icg.aspnetcore.utilities.bootstraptaghelpers.svg) ![](https://img.shields.io/nuget/dt/icg.aspnetcore.utilities.bootstraptaghelpers.svg)\n\n## SonarCloud Analysis\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=IowaComputerGurus_aspnetcore.utilities.bootstraptaghelpers)\n\n## Usage Expectations\n\nThese tag helpers are only for markup display, your web project must properly include references to Bootstrap and must abide by all license and other requirements of Bootstrap for the functionality to be utilized here.  For more on how to include Bootstrap within your project please reference their documentation.\n\n\n## Setup - Registering TagHelpers\n\nYou must modify your `_viewimports.cshtml` file by adding\n\n``` html+razor\n@addTagHelper *, ICG.AspNetCore.Utilities.BootstrapTagHelpers\n```\n\n## Usage\n\nThe goal of these tag helpers is to reduce the redundant coding, and compliance with various features of not only the Bootstrap library but form patterns.  Within the \"Samples\" folder there are examples of all included tag helpers.  However, the below shows a quick example of the power of these helps.\n\n### Before Usage\n\nThe following markup is how you would output a model-bound field for a password field, including a note on complexity and validation.\n\n``` razor\n\u003cdiv class=\"form-group\"\u003e\n    \u003clabel asp-for=\"Password\" class=\"control-label\"\u003e\u003c/label\u003e\n    \u003cinput asp-for=\"Password\" class=\"form-control\" /\u003e\n    \u003cspan asp-validation-for=\"Password\" class=\"text-danger\"\u003e\u003c/span\u003e\n    \u003csmall class=\"form-text text-muted\"\u003eMust be 8 characters with letters \u0026 numbers\u003c/small\u003e\n\u003c/div\u003e\n```\n\nThis is a total of *306* characters with spaces or *268* without.  Granted we get some help with auto-complete etc.\n\n### After Using\n\nYou can take the entire above example and simplify it to the following\n\n``` razor\n\u003cform-text-input asp-for=\"Password\"\u003e\n    \u003cform-note\u003eMust be 8 characters with letters \u0026 numbers\u003c/form-note\u003e\n\u003c/form-text-input\u003e\n```\n\nThis is a total of *126* characters with spaces or *112* without.  With intellisense, the actual typing characters are much less.  Your form view is also substantially reduced, making lines of code per form reduced.  For forms without notes the markup improvement is even better.\n\n\n## Included Tag Helpers\n\nAt this time tag helpers have been implemented for the following elements.\n\n| Element | Description of Implementation |\n| --- | --- |\n| Alerts | Full support for implementation of alerts, including dismissible alerts |\n| Badges | Full support for implementation of badges of all Bootstrap color variations |\n| Cards | Support for Card, Card Header, Card Header Actions, and Card body elements |\n| Environment Alert | An extension of the `\u003cenvironment\u003e` tag helper to render as an alert style |\n| Input | Support for Form input controls for anything tied to the `\u003cinput\u003e` tag including ASP.NET Code Model Binding \u0026 Validation |\n| Modals | Support for modal dialogs, including Modal Body, header, footer, dismiss, and toggles |\n| TextArea | Support for Form input controls tied to the `\u003ctextarea\u003e` tag including ASP.NET Core Model Binding \u0026 Validation | \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiowacomputergurus%2Faspnetcore.utilities.bootstraptaghelpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiowacomputergurus%2Faspnetcore.utilities.bootstraptaghelpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiowacomputergurus%2Faspnetcore.utilities.bootstraptaghelpers/lists"}