\Kendo\Dataviz\UI\DiagramConnectionContent

A PHP class representing the content setting of DiagramConnection.

Methods

color

The color of the connection content text.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value string

Example

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

fontFamily

The font family of the connection content text.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value string

Example

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

fontSize

The font size of the connection content text.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value float

Example

<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionContent();
$content->fontSize(1);
?>

fontStyle

The font style of the connection content text.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value string

Example

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

fontWeight

The font weight of the connection content text.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value string

Example

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

template

The template which renders the labels.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionContent();
$content->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

text

The text displayed for the connection.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value string

Example

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

visual

A function returning a visual element to render for the content of the connection.

Returns

\Kendo\Dataviz\UI\DiagramConnectionContent

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$content = new \Kendo\Dataviz\UI\DiagramConnectionContent();
$content->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?