diff --git a/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs b/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs index f0f59d4ba2..fb6859087d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs @@ -216,6 +216,21 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures string method, object htmlAttributes); + /// + /// Generate a <input type="hidden"> element + /// + /// A instance for the current scope. + /// The for the . + /// Expression name, relative to the current model. + /// The value which is injected into the element + /// Whether to use the ViewData to generate this element + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GenerateHidden( ViewContext viewContext, ModelExplorer modelExplorer, @@ -224,6 +239,20 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures bool useViewData, object htmlAttributes); + /// + /// Generate a <label> element + /// + /// A instance for the current scope. + /// The for the . + /// Expression name, relative to the current model. Used to set the target of the label. + /// Text used to render this label. + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GenerateLabel( ViewContext viewContext, ModelExplorer modelExplorer, @@ -231,6 +260,20 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures string labelText, object htmlAttributes); + /// + /// Generate a <input type="password"> element + /// + /// A instance for the current scope. + /// The for the . + /// Expression name, relative to the current model. + /// Value used to prefill the checkbox + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GeneratePassword( ViewContext viewContext, ModelExplorer modelExplorer, @@ -238,6 +281,21 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures object value, object htmlAttributes); + /// + /// Generate a <input type="radio"> element + /// + /// A instance for the current scope. + /// The for the . + /// Expression name, relative to the current model. + /// value of the given radio button + /// Whether or not the radio button is checked + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GenerateRadioButton( ViewContext viewContext, ModelExplorer modelExplorer, @@ -384,6 +442,21 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures /// IHtmlContent GenerateGroupsAndOptions(string optionLabel, IEnumerable selectList); + /// + /// Generates a <textarea> element + /// + /// A instance for the current scope. + /// The for the . + /// Expression name, relative to the current model. + /// + /// + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GenerateTextArea( ViewContext viewContext, ModelExplorer modelExplorer, @@ -392,6 +465,21 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures int columns, object htmlAttributes); + /// + /// Generates a <input type="text"> element + /// + /// A instance for the current scope. + /// The for the . + /// Expression name, relative to the current model. + /// + /// + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GenerateTextBox( ViewContext viewContext, ModelExplorer modelExplorer, @@ -420,12 +508,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures /// An that contains the HTML attributes for the element. Alternatively, an /// instance containing the HTML attributes. /// - /// - /// A containing a element if the - /// 's contains an error for the - /// or (as a placeholder) if client-side validation is enabled. null if - /// the is valid and client-side validation is disabled. - /// + /// /// is "span" by default. TagBuilder GenerateValidationMessage( ViewContext viewContext, @@ -435,6 +518,20 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures string tag, object htmlAttributes); + /// + /// Generates a <div> element which contains a list of validation errors. + /// + /// + /// + /// + /// + /// + /// An that contains the parameters for a route. The parameters are retrieved through + /// reflection by examining the properties of the . This is typically + /// created using initializer syntax. Alternatively, an + /// instance containing the route parameters. + /// + /// TagBuilder GenerateValidationSummary( ViewContext viewContext, bool excludePropertyErrors,