GithubHelp home page GithubHelp logo

216giorgiy / taghelpersuite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scottaddie/taghelpersuite

0.0 1.0 0.0 518 KB

A collection of ASP.NET Core Tag Helpers.

License: MIT License

C# 94.17% CSS 5.54% JavaScript 0.29%

taghelpersuite's Introduction

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.

taghelpersuite's People

Contributors

scottaddie avatar

Watchers

James Cloos avatar

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.