\Kendo\UI\FilterMenu
A PHP wrapper for Kendo UI FilterMenu.
Inherits from \Kendo\UI\Widget.
Usage
To use FilterMenu in a PHP page instantiate a new instance, configure it via the available
configuration methods and output it by echo
-ing the result of the render method.
Using Kendo FilterMenu
<?php
// Create a new instance of FilterMenu and specify its id
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
// Configure it
$filterMenu->extra(true)
// Output it
echo $filterMenu->render();
?>
Methods
dataSource
Sets the data source of the widget.
Returns
\Kendo\UI\FilterMenu
Parameters
$value \Kendo\Data\DataSource|array
Example - using \Kendo\Data\DataSource
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$dataSource = new \Kendo\Data\DataSource();
$filterMenu->dataSource($dataSource);
?>
Example - using array
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$schema = new \Kendo\Data\DataSourceSchema();
$filterMenu->dataSource(array('schema' => $schema));
?>
extra
If set to true the filter menu allows the user to input a second criterion.
Returns
\Kendo\UI\FilterMenu
Parameters
$value boolean
Example
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$filterMenu->extra(true);
?>
field
Specifies the field to filter on
Returns
\Kendo\UI\FilterMenu
Parameters
$value string
Example
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$filterMenu->field('value');
?>
messages
The text messages displayed in the filter menu. Use it to customize or localize the filter menu messages.
Returns
\Kendo\UI\FilterMenu
Parameters
$value \Kendo\UI\FilterMenuMessages|array
Example - using \Kendo\UI\FilterMenuMessages
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$messages = new \Kendo\UI\FilterMenuMessages();
$additionalOperator = 'value';
$messages->additionalOperator($additionalOperator);
$filterMenu->messages($messages);
?>
Example - using array
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$additionalOperator = 'value';
$filterMenu->messages(array('additionalOperator' => $additionalOperator));
?>
operators
The text of the filter operators displayed in the filter menu.
Returns
\Kendo\UI\FilterMenu
Parameters
$value \Kendo\UI\FilterMenuOperators|array
Example - using \Kendo\UI\FilterMenuOperators
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$operators = new \Kendo\UI\FilterMenuOperators();
$string = new \Kendo\UI\FilterMenuOperatorsString();
$operators->string($string);
$filterMenu->operators($operators);
?>
Example - using array
<?php
$filterMenu = new \Kendo\UI\FilterMenu('FilterMenu');
$string = new \Kendo\UI\FilterMenuOperatorsString();
$filterMenu->operators(array('string' => $string));
?>