Kendo UI DataSourceSchemaModelField TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("field", ParentTag = "fields", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("validation", new string[] { })]
[SuppressTagRendering]
public class DataSourceSchemaModelFieldTaghelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDataSourceSchemaModelFieldTaghelper
Implements:
Inherited Members
Constructors
Initializes a new instance of the DataSourceSchemaModelFieldTaghelper class.
public DataSourceSchemaModelFieldTaghelper()
Properties
Specifies the default value which will be used for the field when a new model instance is created. The default settings depend on the type of the field. The default value for "string" is "", for "number" is 0, and for "date" is new Date() (today).
public object DefaultValue { get; set; }
Specifies if the field is editable or not. The default value is true.
public bool? Editable { get; set; }
Specifies the field of the original record whose value is used to populate the Model field.
public string From { get; set; }
Specifies if the defaultValue setting should be used. The default is false.
public bool? Nullable { get; set; }
Specifies the function which will parse the field value. If not set default parsers will be used.
public string Parse { get; set; }
Specifies the type of the field. The available options are "string", "number", "boolean", "date" and "object". The default is "string".
public string Type { get; set; }
Specifies the validation options which will be used by Kendo Validator.
[HtmlAttributeNotBound]
public DataSourceSchemaModelFieldValidationTagHelper Validation { 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.