KendoHtmlGenerator
KendoHtmlGenerator class.
Definition
Namespace:Kendo.Mvc.Rendering
Assembly:Kendo.Mvc.dll
Syntax:
public class KendoHtmlGenerator : IKendoHtmlGenerator
Inheritance: objectKendoHtmlGenerator
Implements:
Inherited Members
Constructors
Initializes a new instance of the KendoHtmlGenerator class.
public KendoHtmlGenerator(IModelMetadataProvider metadataProvider, IOptions<MvcViewOptions> optionsAccessor)
Properties
IdAttributeDotReplacement member.
public string IdAttributeDotReplacement { get; }
Methods
Adds a maxlength attribute to the tagBuilder.
protected virtual void AddMaxLengthAttribute(ViewDataDictionary viewData, TagBuilder tagBuilder, ModelExplorer modelExplorer, string expression)
A ViewDataDictionary instance for the current scope.
tagBuilderTagBuilderA TagBuilder instance.
modelExplorerModelExplorerThe ModelExplorer for the expression.
Expression name, relative to the current model.
Adds a placeholder attribute to the tagBuilder.
protected virtual void AddPlaceholderAttribute(ViewDataDictionary viewData, TagBuilder tagBuilder, ModelExplorer modelExplorer, string expression)
A ViewDataDictionary instance for the current scope.
tagBuilderTagBuilderA TagBuilder instance.
modelExplorerModelExplorerThe ModelExplorer for the expression.
Expression name, relative to the current model.
Adds a readonly attribute to the tagBuilder.
protected virtual void AddReadonlyAttribute(ViewDataDictionary viewData, TagBuilder tagBuilder, ModelExplorer modelExplorer, string expression)
A ViewDataDictionary instance for the current scope.
tagBuilderTagBuilderA TagBuilder instance.
modelExplorerModelExplorerThe ModelExplorer for the expression.
Expression name, relative to the current model.
Adds validation attributes to the tagBuilder if client validation
is enabled.
protected virtual void AddValidationAttributes(ViewContext viewContext, TagBuilder tagBuilder, ModelExplorer modelExplorer, string expression)
A ViewContext instance for the current scope.
tagBuilderTagBuilderA TagBuilder instance.
modelExplorerModelExplorerThe ModelExplorer for the expression.
Expression name, relative to the current model.
GenerateBoundElement method.
public TagBuilder GenerateBoundElement(string elementType, ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, string type, IDictionary<string, object> htmlAttributes)
Implements:
GenerateColorInput method.
public virtual TagBuilder GenerateColorInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, IDictionary<string, object> htmlAttributes)
Implements:
GenerateDateInput method.
public virtual TagBuilder GenerateDateInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Implements:
GenerateDateTimeInput method.
public virtual TagBuilder GenerateDateTimeInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Implements:
GenerateHiddenForCheckbox method.
public virtual TagBuilder GenerateHiddenForCheckbox(ViewContext viewContext, string name, IDictionary<string, object> htmlAttributes)
Implements:
GenerateInput method.
public TagBuilder GenerateInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, string type, IDictionary<string, object> htmlAttributes)
Implements:
GenerateMultiSelect method.
public virtual TagBuilder GenerateMultiSelect(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, IDictionary<string, object> htmlAttributes)
Implements:
GenerateNumericInput method.
public virtual TagBuilder GenerateNumericInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Implements:
GeneratePseudoBuilder method.
public TagBuilder GeneratePseudoBuilder(ViewContext viewContext, ModelExplorer modelExplorer, string name)
Implements:
GeneratePseudoFileInputBuilder method.
public TagBuilder GeneratePseudoFileInputBuilder(ViewContext viewContext, ModelExplorer modelExplorer, string name)
Implements:
GenerateRadioInput method.
public TagBuilder GenerateRadioInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Implements:
GenerateRangeInput method.
public virtual TagBuilder GenerateRangeInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, IDictionary<string, object> htmlAttributes)
Implements:
GenerateTag method.
public virtual TagBuilder GenerateTag(string tagName, IDictionary<string, object> htmlAttributes)
Implements:
GenerateTag method.
public virtual TagBuilder GenerateTag(string tagName, ViewContext viewContext, string id, string name, IDictionary<string, object> htmlAttributes)
Implements:
GenerateTextarea method.
public virtual TagBuilder GenerateTextarea(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, IDictionary<string, object> htmlAttributes)
Implements:
GenerateTextInput method.
public TagBuilder GenerateTextInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Implements:
GenerateTimeInput method.
public virtual TagBuilder GenerateTimeInput(ViewContext viewContext, ModelExplorer modelExplorer, string id, string name, object value, string format, IDictionary<string, object> htmlAttributes)
Implements:
Gets an <input> element's "type" attribute value based on the given modelExplorer
or InputType.
protected string GetInputType(ModelExplorer modelExplorer, out string inputTypeHint)
The ModelExplorer to use.
inputTypeHintstringWhen this method returns, contains the string, often the name of a ModelType base class, used to determine this method's return value.
Returns:An <input> element's "type" attribute value.