\Kendo\UI\ListBoxDraggable

A PHP class representing the draggable setting of ListBox.

Methods

enabled

Indicates whether dragging is enabled.

Returns

\Kendo\UI\ListBoxDraggable

Parameters

$value boolean

Example

<?php
$draggable = new \Kendo\UI\ListBoxDraggable();
$draggable->enabled(true);
?>

hint

Provides an option to customize the draggable item hint. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a hint is not provided, the ListBox clones the dragged item and uses it as a hint.

Returns

\Kendo\UI\ListBoxDraggable

Parameters

$value \Kendo\JavaScriptFunction|string|

Example - using \Kendo\JavaScriptFunction

<?php
$draggable = new \Kendo\UI\ListBoxDraggable();
$draggable->hint(new \Kendo\JavaScriptFunction('function() { }'));
?>

Example - using string

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

placeholder

Provides an option to customize the item placeholder of the ListBox. If a function is supplied, it receives a single argument - the jQuery object of the draggable element. If a placeholder is not provided, the ListBox clones the dragged item, removes its id attribute, sets its visibility to hidden, and uses it as a placeholder.

Returns

\Kendo\UI\ListBoxDraggable

Parameters

$value \Kendo\JavaScriptFunction|string|

Example - using \Kendo\JavaScriptFunction

<?php
$draggable = new \Kendo\UI\ListBoxDraggable();
$draggable->placeholder(new \Kendo\JavaScriptFunction('function() { }'));
?>

Example - using string

<?php
$draggable = new \Kendo\UI\ListBoxDraggable();
$draggable->placeholder('value');
?>
In this article
Not finding the help you need?