Kendo UI Collapse TagHelper ItemsAnimationCollapseSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("collapse", ParentTag = "animation", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class ItemsAnimationCollapseSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseItemsAnimationCollapseSettingsTagHelper
Implements:
Inherited Members
Example:
The animation settings are applicable for the TreeView, PanelBar, and ChatToolbar TagHelpers. The following example demonstrates how to configure the animation settings for the PanelBar component.
@addTagHelper *, Kendo.Mvc
<kendo-panelbar name="panelbar">
<animation>
<collapse duration="100" />
</animation>
</kendo-panelbar>
Constructors
Initializes a new instance of the ItemsAnimationCollapseSettingsTagHelper class.
public ItemsAnimationCollapseSettingsTagHelper()
Properties
The number of milliseconds used for the visual animation when a PanelBar item is closed.
public double? Duration { 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.