\Kendo\UI\FormItemLabel

A PHP class representing the label setting of FormItem.

Methods

encoded

Specifies if the label text will HTML-encoded before it is displayed. If set to false the label text will be displayed as is.

Returns

\Kendo\UI\FormItemLabel

Parameters

$value boolean

Example

<?php
$label = new \Kendo\UI\FormItemLabel();
$label->encoded(true);
?>

optional

Specifies if the field is optional by rendering additional text next to the label.

Returns

\Kendo\UI\FormItemLabel

Parameters

$value boolean

Example

<?php
$label = new \Kendo\UI\FormItemLabel();
$label->optional(true);
?>

text

Defines the text of the label.

Returns

\Kendo\UI\FormItemLabel

Parameters

$value string

Example

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