InputTagHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ITagHelper implementation targeting <input> elements with an asp-for
attribute.
public ref class InputTagHelper : Microsoft::AspNetCore::Razor::TagHelpers::TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("input", Attributes="asp-for", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
public class InputTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("input", Attributes="asp-for", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
type InputTagHelper = class
inherit TagHelper
Public Class InputTagHelper
Inherits TagHelper
- Inheritance
- Attributes
Constructors
InputTagHelper(IHtmlGenerator) |
Creates a new InputTagHelper. |
Properties
For |
An expression to be evaluated against the current model. |
Format |
The format string (see https://msdn.microsoft.com/en-us/library/txafckwd.aspx) used to format the For result. Sets the generated "value" attribute to that formatted string. |
FormName |
The name of the associated form |
Generator |
Gets the IHtmlGenerator used to generate the InputTagHelper's output. |
InputTypeName |
The type of the <input> element. |
Name |
The name of the <input> element. |
Order |
When a set of ITagHelpers are executed, their Init(TagHelperContext)'s are first invoked in the specified Order; then their ProcessAsync(TagHelperContext, TagHelperOutput)'s are invoked in the specified Order. Lower values are executed first. |
Value |
The value of the <input> element. |
ViewContext |
Gets the ViewContext of the executing view. |
Methods
GetInputType(ModelExplorer, String) |
Gets an <input> element's "type" attribute value based on the given |
Init(TagHelperContext) |
Initializes the ITagHelper with the given |
Process(TagHelperContext, TagHelperOutput) |
Synchronously executes the TagHelper with the given |
ProcessAsync(TagHelperContext, TagHelperOutput) |
Asynchronously executes the TagHelper with the given |