\Kendo\Data\DataSourceSortItem

A PHP class representing the sortItem setting of DataSourceSort.

Methods

compare

Function which can be used for custom comparing of the DataSource items.

Returns

\Kendo\Data\DataSourceSortItem

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$sortItem = new \Kendo\Data\DataSourceSortItem();
$sortItem->compare(new \Kendo\JavaScriptFunction('function() { }'));
?>

dir

The sort order (direction).The supported values are:

Returns

\Kendo\Data\DataSourceSortItem

Parameters

$value string

Example

<?php
$sortItem = new \Kendo\Data\DataSourceSortItem();
$sortItem->dir('value');
?>

field

The field by which the data items are sorted.

Returns

\Kendo\Data\DataSourceSortItem

Parameters

$value string

Example

<?php
$sortItem = new \Kendo\Data\DataSourceSortItem();
$sortItem->field('value');
?>