Kendo UI checkboxes TagHelper TreeViewCheckboxesSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("checkboxes", ParentTag = "kendo-treeview", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("checkbox-template", new string[] { })]
[SuppressTagRendering]
public class TreeViewCheckboxesSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTreeViewCheckboxesSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-treeview name="treeview">
<checkboxes check-children="true"></checkboxes>
</kendo-treeview>
Child Tags
Constructors
Initializes a new instance of the TreeViewCheckboxesSettingsTagHelper class.
public TreeViewCheckboxesSettingsTagHelper()
Properties
Indicates whether checkboxes of child items should get checked when the checkbox of a parent item is checked. This also enables tri-state checkboxes with an indeterminate state.
public bool? CheckChildren { get; set; }
Sets the name attribute of the checkbox inputs. That name will be posted to the server.
public string Name { get; set; }
The template which renders the checkboxes. Can be used to allow posting of additional information along the TreeView checkboxes.The fields which can be used in the template are: item - the data item of the given node or treeview - the TreeView options.
public string Template { get; set; }
The template which renders the checkboxes. Can be used to allow posting of additional information along the TreeView checkboxes.The fields which can be used in the template are: item - the data item of the given node or treeview - the TreeView options. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which renders the checkboxes. Can be used to allow posting of additional information along the TreeView checkboxes.The fields which can be used in the template are: item - the data item of the given node or treeview - the TreeView options. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
A collection of templates that can be used for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the checkboxes. Can be used to allow posting of additional information along the TreeView checkboxes.The fields which can be used in the template are: item - the data item of the given node or treeview - the TreeView options. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { 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.