\Kendo\Dataviz\UI\DiagramShapeConnector
A PHP class representing the connector setting of DiagramShapeConnectors.
Methods
description
The connector description.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value string
Example
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->description('value');
?>
fill
Defines the fill options of the shape connectors.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value string|\Kendo\Dataviz\UI\DiagramShapeConnectorFill|array
Example - using string
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->fill('value');
?>
Example - using \Kendo\Dataviz\UI\DiagramShapeConnectorFill
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$fill = new \Kendo\Dataviz\UI\DiagramShapeConnectorFill();
$color = 'value';
$fill->color($color);
$connector->fill($fill);
?>
Example - using array
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$color = 'value';
$connector->fill(array('color' => $color));
?>
height
Defines the height of the shape connectors. See shapes.connectors for an example.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value float
Example
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->height(1);
?>
hover
Defines the hover configuration of the shape connectors.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value \Kendo\Dataviz\UI\DiagramShapeConnectorHover|array
Example - using \Kendo\Dataviz\UI\DiagramShapeConnectorHover
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$hover = new \Kendo\Dataviz\UI\DiagramShapeConnectorHover();
$fill = 'value';
$hover->fill($fill);
$connector->hover($hover);
?>
Example - using array
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$fill = 'value';
$connector->hover(array('fill' => $fill));
?>
name
The connector name. The predefined names are: "top" - top connector; "right" - right connector; "bottom" - bottom connector; "bottomRight" - bottom right connector; "left" - left connector or "auto" - auto connector.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value string
Example
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->name('value');
?>
position
The function that positions the connector. The function is passed a shape as parameter and should return a kendo.dataviz.diagram.Point indicating where the connector should be placed.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->position(new \Kendo\JavaScriptFunction('function() { }'));
?>
stroke
Defines the stroke options of the shape connectors.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value string|\Kendo\Dataviz\UI\DiagramShapeConnectorStroke|array
Example - using string
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->stroke('value');
?>
Example - using \Kendo\Dataviz\UI\DiagramShapeConnectorStroke
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$stroke = new \Kendo\Dataviz\UI\DiagramShapeConnectorStroke();
$color = 'value';
$stroke->color($color);
$connector->stroke($stroke);
?>
Example - using array
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$color = 'value';
$connector->stroke(array('color' => $color));
?>
width
Defines the width of the shape connectors. See shapes.connectors for an example.
Returns
\Kendo\Dataviz\UI\DiagramShapeConnector
Parameters
$value float
Example
<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeConnector();
$connector->width(1);
?>