\Kendo\UI\FormItem

A PHP class representing the item setting of FormItems.

Methods

attributes

Defines the attributes that are applied to the input element.

Returns

\Kendo\UI\FormItem

Parameters

$value ``

colSpan

Defines the field size when grid layout is used.

Returns

\Kendo\UI\FormItem

Parameters

$value float

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->colSpan(1);
?>

editor

Defines the editor widget type. Available options are: DropDown widgets - "AutoComplete", "DropDownList", "ComboBox", "MultiSelect", "DropDownTree", "MultiColumnComboBox"; DatePicker widgets - "DateInput", "DatePicker", "DateTimePicker", "TimePicker"; Input widgets - "TextBox", "TextArea", "NumericTextBox", "MaskedTextBox", "RadioGroup", "CheckBoxGroup", "Switch", "Rating", "Slider", "ColorPicker", "ColorGradient", "ColorPalette", "FlatColorPicker", "Signature", "hidden" or Editor widget - "Editor".

Returns

\Kendo\UI\FormItem

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$item = new \Kendo\UI\FormItem();
$item->editor('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$item = new \Kendo\UI\FormItem();
$item->editor(new \Kendo\JavaScriptFunction('function() { }'));
?>

editorOptions

Defines the widget configuration for the specified items.editor.

Returns

\Kendo\UI\FormItem

Parameters

$value ``

field

Maps to the model field which will be configured and sets the name of the input.

Returns

\Kendo\UI\FormItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->field('value');
?>

grid

Grid layout settings of the form item.

Returns

\Kendo\UI\FormItem

Parameters

$value ``

hint

Defines the hint text that will be shown underneath the form editor.

Returns

\Kendo\UI\FormItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->hint('value');
?>

id

Defines the field id.

Returns

\Kendo\UI\FormItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->id('value');
?>

label

Defines the field label.

Returns

\Kendo\UI\FormItem

Parameters

$value string|\Kendo\UI\FormItemLabel|array

Example - using string

<?php
$item = new \Kendo\UI\FormItem();
$item->label('value');
?>

Example - using \Kendo\UI\FormItemLabel

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

Example - using array

<?php
$item = new \Kendo\UI\FormItem();
$encoded = true;
$item->label(array('encoded' => $encoded));
?>

layout

Specify the layout of the item when items.type is set to "group". Valid options: grid: This is equivalent to display: grid. It defines the form item as a grid container and establishes a new grid formatting context for its contents..

Returns

\Kendo\UI\FormItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->layout('value');
?>

title

Defines the field title.

Returns

\Kendo\UI\FormItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->title('value');
?>

type

Defines the type of the item. Available options: "group".

Returns

\Kendo\UI\FormItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\FormItem();
$item->type('value');
?>

validation

Specified the validation rules for the field.

Returns

\Kendo\UI\FormItem

Parameters

$value ``
In this article
Not finding the help you need?