Introduction to ASP.NET Core part 18: custom tag helpers cont’d
February 27, 2017 Leave a comment
Introduction
In the previous post we started looking into custom tags. The most straightforward way of creating custom HTML tags is to derive from the TagHelper class and override its Process or ProcessAsync function. Otherwise a custom tag helper is a normal C# class, i.e. there’s no special template involved. We discussed some examples of custom attributes and elements as well.
In this post we’ll look at some more examples of custom tags. We’ll also see how to pass in an object into a custom tag as an argument.