\Kendo\Dataviz\UI\DiagramShapeContent

A PHP class representing the content setting of DiagramShape.

Methods

align

The alignment of the text inside the shape. You can do combinations between "top", "middle" and "bottom" for vertical align and "right", "center" and "left" for horizontal align. For example, "top right", "middle left", "bottom center", and so on.

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.

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');
?>
In this article
Not finding the help you need?