\Kendo\UI\WindowDraggable

A PHP class representing the draggable setting of Window.

Methods

axis

Constrains the dragging to horizontal (x) or vertical (y) axis. Accepts two possible values: "x", "y".

Returns

\Kendo\UI\WindowDraggable

Parameters

$value string

Example

<?php
$draggable = new \Kendo\UI\WindowDraggable();
$draggable->axis('value');
?>

containment

Defines the element in which the window will be able to move. The window is appended to this element, thus, overriding the appendTo setting. Accepts either selector or an element.Note that the containment element should be positioned. In other words, it should have CSS position attribute of relative, absolute, or fixed.

Returns

\Kendo\UI\WindowDraggable

Parameters

$value string

Example - using string

<?php
$draggable = new \Kendo\UI\WindowDraggable();
$draggable->containment('value');
?>

dragHandle

Restricts dragging of the window through the specified element which should be part of the window's content. Accepts either selector or element.

Returns

\Kendo\UI\WindowDraggable

Parameters

$value string

Example

<?php
$draggable = new \Kendo\UI\WindowDraggable();
$draggable->dragHandle('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy