New to Kendo UI for AngularStart a free 30-day trial

Axis Lock

You can use the DragTarget directive to restrict the drag either to the horizontal or vertical axis. To implement the axis restriction, set the restrictByAxis property.

Restriction by axis is only applicable when the drag mode is set to auto. In manual mode the developer has full control over the drag action.

The following example demonstrates locking the element to be dragged horizontally or vertically only.

Change Theme
Theme
Loading ...
In this article
Suggested Links
Not finding the help you need?
Contact Support