Kendo UI draggable TagHelper WindowDraggableSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("draggable", ParentTag = "kendo-window", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("draggable", ParentTag = "window", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class WindowDraggableSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseWindowDraggableSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-window name="window">
<draggable axis="x" />
</kendo-window>
Constructors
Initializes a new instance of the WindowDraggableSettingsTagHelper class.
public WindowDraggableSettingsTagHelper()
Properties
Constrains the dragging to horizontal (x) or vertical (y) axis. Accepts two possible values: "x", "y".
public string Axis { get; set; }
Defines the selector of an element in which the window will be able to move. The element must have sufficient dimensions to contain the window. Accepts either selector or an element.
public string Containment { get; set; }
Restricts dragging of the window from the specified element. It should be part of the window element. This configuration setting accepts either selector or element.
public string DragHandle { 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.