\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 via a pop-up editor much like 'editable.template' configuration of the Kendo UI Grid widget.
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 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. See the 'editable.connectionTemplate' for an example.
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);
?>