\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 - "NumericTextBox", "MaskedTextBox", "Switch", "Rating", "Slider", "ColorPicker" 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');
?>

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();
$optional = true;
$label->optional($optional);
$item->label($label);
?>

Example - using array

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

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?