GitXplorerGitXplorer
s

TagHelperSuite

public
2 stars
2 forks
1 issues

Commits

List of commits on branch master.
Verified
ab006874af8edf65ae60afc007d4f33e5c921520

Link to NuGet package

sscottaddie committed 7 years ago
Unverified
1a6eaa37e7714616a87972d9e1a5c2e7cd003235

Refactor testing infrastructure

sscottaddie committed 7 years ago
Verified
7d72aa4dea6dfcd8f486eb65c53fb0e604a33116

Add new section to README

sscottaddie committed 7 years ago
Verified
a7e2f26581df82cb3b7a401b83156bf758019532

Add a more complete Razor Pages example

sscottaddie committed 7 years ago
Verified
d125be80fa29d9ecc5df21a697bca92cae26992b

Rearrange README content

sscottaddie committed 7 years ago
Verified
09c14f20b2afec55fb05378b083c0cd740dff82e

Revert to html snippet type for improved colorization

sscottaddie committed 7 years ago

README

The README file for this repository.

TagHelperSuite build status

Overview

This collection of Tag Helpers will evolve and expand over time. For now, it includes the following:

  1. <link-button> - Produces an anchor element which posts the form in which it's placed. Brings ASP.NET 4.x Web Forms LinkButton control behavior to ASP.NET Core MVC and Razor Pages.

    Consider the following markup in the Index.cshtml file of a Razor Pages app:

    <form asp-page-handler="Post">
        <link-button>Test Link</link-button>
    </form>

    When clicked, the associated page model's OnPost handler is invoked:

    public class IndexModel : PageModel
    {
        public void OnPost()
        {
        }
    }

Installation

  1. Add a reference to the NuGet package:

    dotnet add package TagHelperSuite
  2. Restore NuGet package:

    dotnet restore
  3. Register the Tag Helpers in _ViewImports.cshtml:

    @addTagHelper *, TagHelperSuite

Acknowledgements

Credit goes to Isaac Levin for the idea that lead to the creation of the <link-button> Tag Helper.