\Kendo\Dataviz\UI\DiagramEditable

A PHP class representing the editable setting of Diagram.

Methods

connectionTemplate

Specifies the connection editor template which shows up when editing the connection. A template can be used to change the default editors for the connection fields or to prevent some fields from being edited by not rendering an editor input for them.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$editable->connectionTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$editable->connectionTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

drag

Specifies if the shapes and connections can be dragged.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

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

Example - using boolean

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

Example - using \Kendo\Dataviz\UI\DiagramEditableDrag

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

Example - using array

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$snap = true;
$editable->drag(array('snap' => $snap));
?>

remove

Specifies if the shapes and connections can be removed.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

$value boolean

Example

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

resize

Defines the look-and-feel of the shape resizing handles.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

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

Example - using boolean

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

Example - using \Kendo\Dataviz\UI\DiagramEditableResize

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$resize = new \Kendo\Dataviz\UI\DiagramEditableResize();
$handles = new \Kendo\Dataviz\UI\DiagramEditableResizeHandles();
$resize->handles($handles);
$editable->resize($resize);
?>

Example - using array

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$handles = new \Kendo\Dataviz\UI\DiagramEditableResizeHandles();
$editable->resize(array('handles' => $handles));
?>

rotate

Specifies whether the shapes can be rotated. Note that changing this setting after creating the diagram will have no effect.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

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

Example - using boolean

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

Example - using \Kendo\Dataviz\UI\DiagramEditableRotate

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$rotate = new \Kendo\Dataviz\UI\DiagramEditableRotate();
$fill = new \Kendo\Dataviz\UI\DiagramEditableRotateFill();
$rotate->fill($fill);
$editable->rotate($rotate);
?>

Example - using array

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$fill = new \Kendo\Dataviz\UI\DiagramEditableRotateFill();
$editable->rotate(array('fill' => $fill));
?>

shapeTemplate

Specifies the shape editor template. You can use it to customize the editing UI of the shape or to display editor controls only for certain fields of the shape data item.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$editable->shapeTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$editable->shapeTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

addTool

Adds one or more DiagramEditableTool to the DiagramEditable.

Returns

\Kendo\Dataviz\UI\DiagramEditable

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramEditableTool

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

Example - using array

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

Example - adding more than one DiagramEditableTool

<?php
$editable = new \Kendo\Dataviz\UI\DiagramEditable();
$first  = new \Kendo\Dataviz\UI\DiagramEditableTool();
$second = new \Kendo\Dataviz\UI\DiagramEditableTool();
$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