TagHelperBase
Base class for all Kendo UI Tag Helpers.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
public abstract class TagHelperBase : TagHelper, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the TagHelperBase class.
Fields
MaximumValidator member.
protected const string MaximumValidator = "max"
MinimumValidator member.
protected const string MinimumValidator = "min"
Properties
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
public bool? AsModule { get; set; }
Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
public bool Deferred { get; set; }
The Kendo HTML generator used to generate HTML elements.
[HtmlAttributeNotBound]
protected IKendoHtmlGenerator Generator { get; set; }
Gets or sets the Id of the component.
[HtmlAttributeNotBound]
public string Id { get; set; }
The JavaScript initializer used to generate the initialization script for the component.
[HtmlAttributeNotBound]
public IJavaScriptInitializer Initializer { get; set; }
When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
public bool IsInClientTemplate { get; set; }
Sets the attributes that will be added to the script tag of the component's initialization script.
public IDictionary<string, object> ScriptAttributes { get; set; }
The ViewContext of the current request.
[HtmlAttributeNotBound]
[ViewContext]
public ViewContext ViewContext { get; set; }
The JavaScript writer used to write the script tag and its attributes.
[HtmlAttributeNotBound]
public IJavaScriptWriter Writer { get; set; }
Methods
AddSelfToTemplate method.
CreateHandler method.
GenerateId method.
GetInitializationScript method.
Generates the initialization script for the component.
GetRangeValidationParameter{TValue} method.
protected TValue? GetRangeValidationParameter<TValue>(ModelExplorer explorer, string parameter) where TValue : struct
TValue?
public override void Process(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the settings of the component.
SerializeEvents method.
protected abstract Dictionary<string, object> SerializeEvents()
SerializeSettings method.
protected virtual Dictionary<string, object> SerializeSettings()
SerializeTemplates method.
protected virtual Dictionary<string, object> SerializeTemplates()
ToDictionaryHandler method.
protected Dictionary<string, object> ToDictionaryHandler(IDictionary<string, string> rules)
VerifySettings method.
protected virtual void VerifySettings()
WriteHtml method.