\Kendo\Dataviz\UI\DiagramShapeDefaultsContent

A PHP class representing the content setting of DiagramShapeDefaults.

Methods

align

The alignment of the text inside the shape.

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:

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');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy