\Kendo\Dataviz\UI\DiagramShapeContent

A PHP class representing the content setting of DiagramShape.

Methods

align

The alignment of the text inside the shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string

Example

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

color

The color of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string

Example

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

fontFamily

The font family of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string

Example

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

fontSize

The font size of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value float

Example

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

fontStyle

The font style of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string

Example

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

fontWeight

The font weight of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string

Example

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

template

The template which renders the labels.The fields which can be used in the template are:

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

text

The text displayed in the shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeContent

Parameters

$value string

Example

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