\Kendo\Dataviz\UI\DiagramShapeDefaultsEditable

A PHP class representing the editable setting of DiagramShapeDefaults.

Methods

connect

Specifies whether the connectors appear on hover.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsEditable

Parameters

$value boolean

Example

<?php
$editable = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditable();
$editable->connect(true);
?>

drag

Specifies if the shapes can be dragged.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsEditable

Parameters

$value boolean

Example

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

remove

Specifies if the shapes can be removed.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsEditable

Parameters

$value boolean

Example

<?php
$editable = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditable();
$editable->remove(true);
?>

addTool

Adds one or more DiagramShapeDefaultsEditableTool to the DiagramShapeDefaultsEditable.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsEditable

Parameters

$value[, $value2, ...] \Kendo\Dataviz\UI\DiagramShapeDefaultsEditableTool |array

Example - using \Kendo\Dataviz\UI\DiagramShapeDefaultsEditableTool

<?php
$editable = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditable();
$tool = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditableTool();
$enable = true;
$tool->enable($enable);
$editable->addTool($tool);
?>

Example - using array

<?php
$editable = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditable();
$enable = true;
$editable->addTool(array('enable' => $enable));
?>

Example - adding more than one DiagramShapeDefaultsEditableTool

<?php
$editable = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditable();
$first  = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditableTool();
$second = new \Kendo\Dataviz\UI\DiagramShapeDefaultsEditableTool();
$editable->addTool($first, $second);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy