\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

A PHP class representing the content setting of DiagramShapeDefaults.

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\DiagramShapeDefaultsContent

Parameters

$value string

Example

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

color

The color of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value string

Example

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

fontFamily

The font family of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value string

Example

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

fontSize

The font size of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value float

Example

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

fontStyle

The font style of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value string

Example

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

fontWeight

The font weight of the shape content text.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value string

Example

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

template

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

text

The text that is displayed in the shape.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

Parameters

$value string

Example

<?php
$content = new \Kendo\Dataviz\UI\DiagramShapeDefaultsContent();
$content->text('value');
?>
In this article
Not finding the help you need?