\Kendo\Dataviz\UI\DiagramConnectionDefaults

A PHP class representing the connectionDefaults setting of Diagram.

Methods

content

Defines the label displayed on the connection path.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$color = 'value';
$content->color($color);
$connectionDefaults->content($content);
?>

Example - using array

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

editable

Defines the editing behavior of the connections.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using boolean

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsEditable

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

Example - using array

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

endCap

The connections end cap configuration. Can be set to a configuration object or a string that represents the endCap.type value.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using string

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsEndCap

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$endCap = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsEndCap();
$fill = 'value';
$endCap->fill($fill);
$connectionDefaults->endCap($endCap);
?>

Example - using array

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

fromConnector

Specifies the name of the source shape connector that should be used by default. Valid values are "top", "right", "bottom", "left" and "auto".

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

$value string

Example

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

hover

Defines the default styling that is applied when the user hovers over a connection.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsHover

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$hover = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsHover();
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsHoverStroke();
$hover->stroke($stroke);
$connectionDefaults->hover($hover);
?>

Example - using array

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsHoverStroke();
$connectionDefaults->hover(array('stroke' => $stroke));
?>

selectable

Specifies if connections can be selected.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

$value boolean

Example

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$connectionDefaults->selectable(true);
?>

selection

Defines the connections selection configuration.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsSelection

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$selection = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsSelection();
$handles = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsSelectionHandles();
$selection->handles($handles);
$connectionDefaults->selection($selection);
?>

Example - using array

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$handles = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsSelectionHandles();
$connectionDefaults->selection(array('handles' => $handles));
?>

startCap

The connection start cap configuration or type name.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using string

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsStartCap

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$startCap = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsStartCap();
$fill = 'value';
$startCap->fill($fill);
$connectionDefaults->startCap($startCap);
?>

Example - using array

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

stroke

Defines the connection line configuration.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

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

Example - using \Kendo\Dataviz\UI\DiagramConnectionDefaultsStroke

<?php
$connectionDefaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsStroke();
$color = 'value';
$stroke->color($color);
$connectionDefaults->stroke($stroke);
?>

Example - using array

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

toConnector

Specifies the name of the target shape connector that should be used by default. Valid values are "top", "right", "bottom", "left" and "auto".

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

$value string

Example

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

type

The connections type.

Returns

\Kendo\Dataviz\UI\DiagramConnectionDefaults

Parameters

$value string

Example

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