\Kendo\UI\GanttResources
A PHP class representing the resources setting of Gantt.
Methods
dataColorField
The field of the resource data item which contains the resource color.
Returns
\Kendo\UI\GanttResources
Parameters
$value string
Example
<?php
$resources = new \Kendo\UI\GanttResources();
$resources->dataColorField('value');
?>
dataFormatField
The field of the resource data item containing the format of the resource value, which could be assigned to a gantt task. The data item format value could be any valid kendo format.
Returns
\Kendo\UI\GanttResources
Parameters
$value string
Example
<?php
$resources = new \Kendo\UI\GanttResources();
$resources->dataFormatField('value');
?>
dataSource
Sets the data source of the widget.
Returns
\Kendo\UI\GanttResources
Parameters
$value \Kendo\Data\DataSource|array
Example - using \Kendo\Data\DataSource
<?php
$resources = new \Kendo\UI\GanttResources();
$dataSource = new \Kendo\Data\DataSource();
$resources->dataSource($dataSource);
?>
Example - using array
<?php
$resources = new \Kendo\UI\GanttResources();
$schema = new \Kendo\Data\DataSourceSchema();
$resources->dataSource(array('schema' => $schema));
?>
dataTextField
The field of the resource data item which represents the resource text.
Returns
\Kendo\UI\GanttResources
Parameters
$value string
Example
<?php
$resources = new \Kendo\UI\GanttResources();
$resources->dataTextField('value');
?>
field
The field of the gantt task which contains the assigned resource objects.
Returns
\Kendo\UI\GanttResources
Parameters
$value string
Example
<?php
$resources = new \Kendo\UI\GanttResources();
$resources->field('value');
?>