\Kendo\UI\AutoCompleteVirtual

A PHP class representing the virtual setting of AutoComplete.

Methods

itemHeight

Specifies the height of the virtual item. All items in the virtualized list must have the same height. If the developer does not specify one, the framework will automatically set itemHeight based on the current theme and font size.

Returns

\Kendo\UI\AutoCompleteVirtual

Parameters

$value float

Example

<?php
$virtual = new \Kendo\UI\AutoCompleteVirtual();
$virtual->itemHeight(1);
?>

mapValueTo

The changes introduced with the Kendo UI R3 2016 release enable you to determine if the valueMapper must resolve a value to an index or a value to a dataItem. This is configured through the mapValueTo option that accepts two possible values - "index" or "dataItem". By default, the mapValueTo is set to "index", which does not affect the current behavior of the virtualization process.For more information, refer to the article on virtualization.

Returns

\Kendo\UI\AutoCompleteVirtual

Parameters

$value string

Example

<?php
$virtual = new \Kendo\UI\AutoCompleteVirtual();
$virtual->mapValueTo('value');
?>

valueMapper

Returns

\Kendo\UI\AutoCompleteVirtual

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$virtual = new \Kendo\UI\AutoCompleteVirtual();
$virtual->valueMapper(new \Kendo\JavaScriptFunction('function() { }'));
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy