\Kendo\UI\PivotConfigurator
A PHP wrapper for Kendo UI PivotConfigurator.
Inherits from \Kendo\UI\Widget.
Usage
To use PivotConfigurator 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 PivotConfigurator
<?php
// Create a new instance of PivotConfigurator and specify its id
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
// Configure it
$pivotConfigurator->filterable(true)
// Output it
echo $pivotConfigurator->render();
?>
Methods
dataSource
Sets the data source of the widget.
Returns
\Kendo\UI\PivotConfigurator
Parameters
$value \Kendo\Data\DataSource|array
Example - using \Kendo\Data\DataSource
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$dataSource = new \Kendo\Data\DataSource();
$pivotConfigurator->dataSource($dataSource);
?>
Example - using array
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$schema = new \Kendo\Data\DataSourceSchema();
$pivotConfigurator->dataSource(array('schema' => $schema));
?>
filterable
If set to true the user will be able to filter by using the field menu.
Returns
\Kendo\UI\PivotConfigurator
Parameters
$value boolean
Example
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$pivotConfigurator->filterable(true);
?>
height
The height of the PivotConfigurator. Numeric values are treated as pixels.
Returns
\Kendo\UI\PivotConfigurator
Parameters
$value float|string
Example - using float
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$pivotConfigurator->height(1);
?>
Example - using string
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$pivotConfigurator->height('value');
?>
messages
The text messages displayed in the fields sections.
Returns
\Kendo\UI\PivotConfigurator
Parameters
$value \Kendo\UI\PivotConfiguratorMessages|array
Example - using \Kendo\UI\PivotConfiguratorMessages
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$messages = new \Kendo\UI\PivotConfiguratorMessages();
$columns = 'value';
$messages->columns($columns);
$pivotConfigurator->messages($messages);
?>
Example - using array
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$columns = 'value';
$pivotConfigurator->messages(array('columns' => $columns));
?>
sortable
If set to true the user could sort the widget by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
Returns
\Kendo\UI\PivotConfigurator
Parameters
$value boolean|\Kendo\UI\PivotConfiguratorSortable|array
Example - using boolean
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$pivotConfigurator->sortable(true);
?>
Example - using \Kendo\UI\PivotConfiguratorSortable
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$sortable = new \Kendo\UI\PivotConfiguratorSortable();
$allowUnsort = true;
$sortable->allowUnsort($allowUnsort);
$pivotConfigurator->sortable($sortable);
?>
Example - using array
<?php
$pivotConfigurator = new \Kendo\UI\PivotConfigurator('PivotConfigurator');
$allowUnsort = true;
$pivotConfigurator->sortable(array('allowUnsort' => $allowUnsort));
?>