\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
A PHP class representing the content setting of DiagramConnectionDefaults.
Methods
color
The color of the connection content text.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value string
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->color('value');
?>
fontFamily
The font family of the connection content text.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value string
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->fontFamily('value');
?>
fontSize
The font size of the connection content text.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value float
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->fontSize(1);
?>
fontStyle
The font style of the connection content text.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value string
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->fontStyle('value');
?>
fontWeight
The font weight of the connection content text.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value string
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->fontWeight('value');
?>
template
The template which renders the labels.The fields which can be used in the template are: dataItem - the data item, in case a field has been specified.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->template('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->template(new \Kendo\JavaScriptFunction('function() { }'));
?>
text
The static text displayed on the connection.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value string
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->text('value');
?>
visual
A function returning a visual element to render for the content of a connection.
Returns
\Kendo\Dataviz\UI\DiagramConnectionDefaultsContent
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsContent();
$content->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>