\Kendo\Dataviz\UI\DiagramConnection

A PHP class representing the connection setting of DiagramConnections.

Methods

content

Defines the connection content settings.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value \Kendo\Dataviz\UI\DiagramConnectionContent|array

Example - using \Kendo\Dataviz\UI\DiagramConnectionContent

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$content = new \Kendo\Dataviz\UI\DiagramConnectionContent();
$color = 'value';
$content->color($color);
$connection->content($content);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$color = 'value';
$connection->content(array('color' => $color));
?>

editable

Defines the shape editable options.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

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

Example - using boolean

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionEditable

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$editable = new \Kendo\Dataviz\UI\DiagramConnectionEditable();
$tools = new \Kendo\Dataviz\UI\DiagramConnectionEditableTools();
$editable->tools($tools);
$connection->editable($editable);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$tools = new \Kendo\Dataviz\UI\DiagramConnectionEditableTools();
$connection->editable(array('tools' => $tools));
?>

endCap

The connection end cap configuration or type name.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string|\Kendo\Dataviz\UI\DiagramConnectionEndCap|array

Example - using string

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->endCap('value');
?>

Example - using \Kendo\Dataviz\UI\DiagramConnectionEndCap

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$endCap = new \Kendo\Dataviz\UI\DiagramConnectionEndCap();
$fill = 'value';
$endCap->fill($fill);
$connection->endCap($endCap);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$fill = 'value';
$connection->endCap(array('fill' => $fill));
?>

from

Defines the source of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string|float|\Kendo\Dataviz\UI\DiagramConnectionFrom|array

Example - using string

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->from('value');
?>

Example - using float

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->from(1);
?>

Example - using \Kendo\Dataviz\UI\DiagramConnectionFrom

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$from = new \Kendo\Dataviz\UI\DiagramConnectionFrom();
$x = 1;
$from->x($x);
$connection->from($from);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$x = 1;
$connection->from(array('x' => $x));
?>

fromConnector

Specifies the name of the source shape connector that should be used by the connection.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string

Example

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->fromConnector('value');
?>

hover

Defines the hover configuration.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value \Kendo\Dataviz\UI\DiagramConnectionHover|array

Example - using \Kendo\Dataviz\UI\DiagramConnectionHover

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$hover = new \Kendo\Dataviz\UI\DiagramConnectionHover();
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionHoverStroke();
$hover->stroke($stroke);
$connection->hover($hover);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionHoverStroke();
$connection->hover(array('stroke' => $stroke));
?>

addPoint

Adds one or more DiagramConnectionPoint to the DiagramConnection.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionPoint

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$point = new \Kendo\Dataviz\UI\DiagramConnectionPoint();
$x = 1;
$point->x($x);
$connection->addPoint($point);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$x = 1;
$connection->addPoint(array('x' => $x));
?>

Example - adding more than one DiagramConnectionPoint

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$first  = new \Kendo\Dataviz\UI\DiagramConnectionPoint();
$second = new \Kendo\Dataviz\UI\DiagramConnectionPoint();
$connection->addPoint($first, $second);
?>

selection

Defines the connection selection configuration.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value \Kendo\Dataviz\UI\DiagramConnectionSelection|array

Example - using \Kendo\Dataviz\UI\DiagramConnectionSelection

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$selection = new \Kendo\Dataviz\UI\DiagramConnectionSelection();
$handles = new \Kendo\Dataviz\UI\DiagramConnectionSelectionHandles();
$selection->handles($handles);
$connection->selection($selection);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$handles = new \Kendo\Dataviz\UI\DiagramConnectionSelectionHandles();
$connection->selection(array('handles' => $handles));
?>

startCap

The connection start cap configuration or type name.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string|\Kendo\Dataviz\UI\DiagramConnectionStartCap|array

Example - using string

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->startCap('value');
?>

Example - using \Kendo\Dataviz\UI\DiagramConnectionStartCap

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$startCap = new \Kendo\Dataviz\UI\DiagramConnectionStartCap();
$fill = 'value';
$startCap->fill($fill);
$connection->startCap($startCap);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$fill = 'value';
$connection->startCap(array('fill' => $fill));
?>

stroke

Defines the stroke configuration.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value \Kendo\Dataviz\UI\DiagramConnectionStroke|array

Example - using \Kendo\Dataviz\UI\DiagramConnectionStroke

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionStroke();
$color = 'value';
$stroke->color($color);
$connection->stroke($stroke);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$color = 'value';
$connection->stroke(array('color' => $color));
?>

to

Defines the target of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string|float|\Kendo\Dataviz\UI\DiagramConnectionTo|array

Example - using string

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->to('value');
?>

Example - using float

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->to(1);
?>

Example - using \Kendo\Dataviz\UI\DiagramConnectionTo

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$to = new \Kendo\Dataviz\UI\DiagramConnectionTo();
$x = 1;
$to->x($x);
$connection->to($to);
?>

Example - using array

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$x = 1;
$connection->to(array('x' => $x));
?>

toConnector

Specifies the name of the target shape connector that should be used by the connection.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string

Example

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->toConnector('value');
?>

type

The connection type.

Returns

\Kendo\Dataviz\UI\DiagramConnection

Parameters

$value string

Example

<?php
$connection = new \Kendo\Dataviz\UI\DiagramConnection();
$connection->type('value');
?>
In this article
Not finding the help you need?