\Kendo\UI\SpreadsheetSheetSort
A PHP class representing the sort setting of SpreadsheetSheet.
Methods
addColumn
Adds one or more SpreadsheetSheetSortColumn to the SpreadsheetSheetSort.
Returns
\Kendo\UI\SpreadsheetSheetSort
Parameters
$value[, $value2, ...] \Kendo\UI\SpreadsheetSheetSortColumn|array
Example - using \Kendo\UI\SpreadsheetSheetSortColumn
<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$column = new \Kendo\UI\SpreadsheetSheetSortColumn();
$ascending = true;
$column->ascending($ascending);
$sort->addColumn($column);
?>
Example - using array
<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$ascending = true;
$sort->addColumn(array('ascending' => $ascending));
?>
Example - adding more than one SpreadsheetSheetSortColumn
<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$first = new \Kendo\UI\SpreadsheetSheetSortColumn();
$second = new \Kendo\UI\SpreadsheetSheetSortColumn();
$sort->addColumn($first, $second);
?>
ref
The sorted range, for example, A1:D5.
Returns
\Kendo\UI\SpreadsheetSheetSort
Parameters
$value string
Example
<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$sort->ref('value');
?>