Kendo UI validatable TagHelper FormValidatableSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("validatable", ParentTag = "kendo-form", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("validatable", ParentTag = "wizard-step-form", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("validation-summary", new string[] { })]
[SuppressTagRendering]
public class FormValidatableSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseFormValidatableSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-form name="form">
<validatable error-template="<span class='k-error'>Validation error</span>"></validatable>
</kendo-form>
Child Tags
Constructors
Initializes a new instance of the FormValidatableSettingsTagHelper class.
public FormValidatableSettingsTagHelper()
Properties
Configures the Form Validator errorTemplate option.
public string ErrorTemplate { get; set; }
Configures the Form Validator errorTemplate option. This option expects the name of a JavaScript function that will be called to return the template.
public string ErrorTemplateHandler { get; set; }
Configures the Form Validator errorTemplate option. This option expects the ID of the script element that contains the template.
public string ErrorTemplateId { get; set; }
Configures the Form Validator errorTemplate option. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent ErrorTemplateView { get; set; }
Configures the Form Validator messageBoxThemeColor option.
public ThemeColor? MessageBoxThemeColor { get; set; }
Configures the templates for the FormValidatableSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Configures the Form Validator validateOnBlur option.
public bool? ValidateOnBlur { get; set; }
Configures the Form Validator validationSummary option.
public bool? ValidationSummary { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
Serializes the defined templates.