In my plugin I have created
namespace Nop.Web.Framework.TagHelpers.Shared
{
[HtmlTargetElement("custom-date-picker",
Attributes = DayNameAttributeName + "," + MonthNameAttributeName + "," + YearNameAttributeName,
TagStructure = TagStructure.WithoutEndTag)]
public class CustomDatePickerTagHelper : TagHelper
{
.......other code.......
}
In my theme I have added
<custom-date-picker
....other attr
/>
In the viewImports there a reference to Nop.Web.Framework
@addTagHelper *, Nop.Web.Framework
...other stuff...
@using Nop.Web.Framework
@using Nop.Web.Framework.Extensions
@using Nop.Web.Framework.Infrastructure
@using Nop.Web.Framework.Models
@using Nop.Web.Framework.Security.Captcha
@using Nop.Web.Framework.Security.Honeypot
@using Nop.Web.Framework.Themes
...other stuff...