\Kendo\Dataviz\UI\DiagramEditableDrag

A PHP class representing the drag setting of DiagramEditable.

Methods

snap

Specifies the shapes drag snap options.

Returns

\Kendo\Dataviz\UI\DiagramEditableDrag

Parameters

$value boolean |\Kendo\Dataviz\UI\DiagramEditableDragSnap |array

Example - using boolean

<?php
$drag = new \Kendo\Dataviz\UI\DiagramEditableDrag();
$drag->snap(true);
?>

Example - using \Kendo\Dataviz\UI\DiagramEditableDragSnap

<?php
$drag = new \Kendo\Dataviz\UI\DiagramEditableDrag();
$snap = new \Kendo\Dataviz\UI\DiagramEditableDragSnap();
$size = 1;
$snap->size($size);
$drag->snap($snap);
?>

Example - using array

<?php
$drag = new \Kendo\Dataviz\UI\DiagramEditableDrag();
$size = 1;
$drag->snap(array('size' => $size));
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy