New to Kendo UI for Vue? Start a free 30-day trial
You’re currently viewing documentation for our jQuery wrappers.This product reached EOL in May, 2024. To ensure smoother transition we provide support till May, 2025. Check here details and migration guidelines.

Constrain Movement

The draggable-containment prop 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 a selector. The Window element is appended to the containment element. Thus, the appendTo setting gets overridden.

The draggable-axis prop constrains the dragging to horizontal (x) or vertical (y) axis. Accepts two possible values: "x", "y".

The draggable-dragHandle prop restricts dragging of the window from the specified element. It should be part of the window element. Accepts a selector.

Example
View Source
Change Theme:

In this article

Not finding the help you need?