Kendo UI Expand TagHelper ItemsAnimationExpandSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("expand", ParentTag = "animation", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class ItemsAnimationExpandSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseItemsAnimationExpandSettingsTagHelper
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.
csharp
@addTagHelper *, Kendo.Mvc
<kendo-panelbar name="panelbar">
<animation>
<expand duration="300" />
</animation>
</kendo-panelbar>
Constructors
Initializes a new instance of the ItemsAnimationExpandSettingsTagHelper class.
C#
public ItemsAnimationExpandSettingsTagHelper()
Properties
The number of milliseconds used for the visual animation when an item is opened.
C#
public double? Duration { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
C#
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.