\Kendo\Dataviz\UI\DiagramShapeEditable

A PHP class representing the editable setting of DiagramShape.

Methods

connect

Specifies whether the connectors should appear on hover. If set to false, the user will not be able to create new connections from this shape to other shapes. Also, it will not be possible to change the connector of an existing connection between this and another shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditable

Parameters

$value boolean

Example

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

addTool

Adds one or more DiagramShapeEditableTool to the DiagramShapeEditable.

Returns

\Kendo\Dataviz\UI\DiagramShapeEditable

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramShapeEditableTool

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

Example - using array

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

Example - adding more than one DiagramShapeEditableTool

<?php
$editable = new \Kendo\Dataviz\UI\DiagramShapeEditable();
$first  = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$second = new \Kendo\Dataviz\UI\DiagramShapeEditableTool();
$editable->addTool($first, $second);
?>
In this article
Not finding the help you need?