Kendo UI animation TagHelper DropDownPopupSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[SuppressTagRendering]
public class DropDownPopupSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDropDownPopupSettingsTagHelper
Derived Classes:
Implements:
Inherited Members
Example:
The popup animation settings are applicable for the dropdown components. The following example demonstrates how to configure the popup animation settings for the DropDownTree component.
@addTagHelper *, Kendo.Mvc
<kendo-dropdowntree name="dropdowntree">
<popup-animation>
<close duration="200" effects="fade" />
<open duration="300" effects="slideIn:down" />
</popup-animation>
</kendo-dropdowntree>
Constructors
Initializes a new instance of the DropDownPopupSettingsTagHelper class.
public DropDownPopupSettingsTagHelper()
Properties
Specifies the element that will be used as an anchor.
public string Anchor { get; set; }
Which element the popup will be appended to. The element needs to be relatively positioned.
public string AppendTo { get; set; }
Configures how the popup should behave when it cannot be properly displayed and fully visible, if its origin and position settings are obeyed.Valid values are: "fit", "flip", "flip fit" and "fit flip". "Fit" allows the popup to be shifted (moved) until it is fully visible. "Flip" allows the popup to switch its position, according to its anchor. If two words are used, the first one applies to the horizontal dimension and the second one - to the vertical dimension. If one word is used, the setting is applied to both dimensions.
public string Collision { get; set; }
Fires when the popup is opened
public string OnActivate { get; set; }
Fires when the popup is closed
public string OnDeactivate { get; set; }
Specifies how to position the popup element based on anchor point. The value is space separated "y" plus "x" position.The available "y" positions are: - "bottom" - "center" - "top"The available "x" positions are: - "left" - "center" - "right"
public string Origin { get; set; }
Specifies which point of the popup element to attach to the anchor's origin point. The value is space separated "y" plus "x" position.The available "y" positions are: - "bottom" - "center" - "top"The available "x" positions are: - "left" - "center" - "right"
public string Position { 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.
SerializeEvents method.
SerializeSettings method.