\Kendo\UI\FilterField

A PHP class representing the field setting of FilterFields.

Methods

defaultValue

A value which will be initially set as a filter value when an expression item for the specific field is created.

Returns

\Kendo\UI\FilterField

Parameters

$value ``

editorTemplate

The template which the widget will use to create the field editor.

Returns

\Kendo\UI\FilterField

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

<?php
$field = new \Kendo\UI\FilterField();
$field->editorTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

label

Defines a value which will be visualized instead of the data feild name.

Returns

\Kendo\UI\FilterField

Parameters

$value string

Example

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

name

A value matching a field name from the datasource model.

Returns

\Kendo\UI\FilterField

Parameters

$value string

Example

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

previewFormat

The format of the value displayed in the preview.

Returns

\Kendo\UI\FilterField

Parameters

$value string

Example

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

type

Defines the value type of the field.The available dataType options are: * "string" * "number" * "boolean" * "date"

Returns

\Kendo\UI\FilterField

Parameters

$value string

Example

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