InputTagHelper Class¶
Summary¶
@!:ITagHelper- implementation targeting <input> elements with an <c>asp-for</c> attribute.
Constructors¶
-
InputTagHelper
(Microsoft.AspNet.Mvc.Rendering.IHtmlGenerator)¶ Creates a new [Microsoft.AspNet.Mvc.TagHelpers.InputTagHelper](Microsoft.AspNet.Mvc.TagHelpers.InputTagHelper.yml).
Arguments: - generator (Microsoft.AspNet.Mvc.Rendering.IHtmlGenerator) – The [Microsoft.AspNet.Mvc.Rendering.IHtmlGenerator]().
public InputTagHelper(IHtmlGenerator generator)
-
Properties¶
-
For
()¶ An expression to be evaluated against the current model.
Return type: Microsoft.AspNet.Mvc.Rendering.ModelExpression public ModelExpression For { get; set; }
-
Format
()¶ The composite format [System.String]() (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx) to apply when converting the [Microsoft.AspNet.Mvc.TagHelpers.InputTagHelper.For](Microsoft.AspNet.Mvc.TagHelpers.InputTagHelper.yml) result to a [System.String](). Sets the generated “value” attribute to that formatted [System.String]().
Return type: System.String public string Format { get; set; }
-
Generator
()¶ Return type: Microsoft.AspNet.Mvc.Rendering.IHtmlGenerator protected IHtmlGenerator Generator { get; }
-
InputTypeName
()¶ The type of the <input> element.
Return type: System.String public string InputTypeName { get; set; }
-
Value
()¶ The value of the <input> element.
Return type: System.String public string Value { get; set; }
-
ViewContext
()¶ Return type: Microsoft.AspNet.Mvc.ViewContext public ViewContext ViewContext { get; set; }
-